Permalink
Browse files

Fix warnings

  • Loading branch information...
1 parent 14c9222 commit 2dc2d214ba1e7279cd85cef8eecc6690c821e472 @fhd fhd committed Mar 19, 2013
@@ -1,3 +1,4 @@
+jre.compilation.profile = J2SE-1.5
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
@@ -37,6 +37,7 @@ public ThemePreferenceMapper(String plugin) {
* @param plugin The ID of the Eclipse plugin whose preferences should be
* altered.
*/
+ @SuppressWarnings("deprecation")
public void setPluginId(String plugin) {
preferences = new InstanceScope().getNode(plugin);
}
@@ -272,6 +272,7 @@ private static String readFile(File file) throws IOException {
int length;
while ((length = in.read(chars)) > 0)
sb.append(chars, 0, length);
+ in.close();
return sb.toString();
}
}

0 comments on commit 2dc2d21

Please sign in to comment.