Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-03-18 12:38:19 -0400
committerAlexander Kurtakov2014-03-18 14:14:00 -0400
commit479a65f194f734fe0cac242c36dd17616b2e0c31 (patch)
treeca5258741672084ca1194f188068ed20fbe787a8 /libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx
parent6b3452638eb0d3ba44ca80d0e15139014a79aa39 (diff)
downloadorg.eclipse.linuxtools-479a65f194f734fe0cac242c36dd17616b2e0c31.tar.gz
org.eclipse.linuxtools-479a65f194f734fe0cac242c36dd17616b2e0c31.tar.xz
org.eclipse.linuxtools-479a65f194f734fe0cac242c36dd17616b2e0c31.zip
libhover: Internalize libstdcxx package.
Change-Id: Ifc9d9c34657413cea41a10c09efd8e86ace35e1b Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/23555 Tested-by: Hudson CI
Diffstat (limited to 'libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx')
-rw-r--r--libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java (renamed from libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/cdt/libhover/libstdcxx/DoxygenCPPInfo.java)10
1 files changed, 5 insertions, 5 deletions
diff --git a/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/cdt/libhover/libstdcxx/DoxygenCPPInfo.java b/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
index ef900c5130..16447010da 100644
--- a/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
+++ b/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
@@ -8,7 +8,7 @@
* Contributors:
* Red Hat Incorporated - initial API and implementation
*******************************************************************************/
-package org.eclipse.linuxtools.cdt.libhover.libstdcxx;
+package org.eclipse.linuxtools.internal.cdt.libhover.libstdcxx;
import java.io.FileInputStream;
import java.io.FileOutputStream;
@@ -413,10 +413,10 @@ public class DoxygenCPPInfo {
}
}
// Now, output the LibHoverInfo for caching later
- FileOutputStream f = new FileOutputStream(fileName);
- ObjectOutputStream out = new ObjectOutputStream(f);
- out.writeObject(cppInfo);
- out.close();
+ try (FileOutputStream f = new FileOutputStream(fileName);
+ ObjectOutputStream out = new ObjectOutputStream(f)) {
+ out.writeObject(cppInfo);
+ }
} catch (Exception e) {
e.printStackTrace();
}

Back to the top