Skip to content

Commit

Permalink
Format java files in o.e.osgi-supplement
Browse files Browse the repository at this point in the history
This was achieved by running:
eclipse -consolelog -nosplash -application org.eclipse.jdt.core.JavaCodeFormatter \
  -config .settings/org.eclipse.jdt.core.prefs . -data `mktemp -d`

Signed-off-by: Torbjörn SVENSSON <[email protected]>
  • Loading branch information
Torbjorn-Svensson committed Dec 17, 2023
1 parent 347c2cc commit 88b757f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private static int[] getFileGenerations(File file) {
try {
int id = Integer.parseInt(candidateFile.substring(prefixLen));
list.add(Integer.valueOf(id));
}catch (NumberFormatException e) {/*ignore*/
} catch (NumberFormatException e) {/*ignore*/
}
}
}
Expand Down Expand Up @@ -561,7 +561,7 @@ public static boolean exists(File file) {
try {
Integer.parseInt(candidateFile.substring(prefixLen));
return true;
}catch (NumberFormatException e) {/*ignore*/
} catch (NumberFormatException e) {/*ignore*/
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public interface DebugOptions {
* If debug is enabled then notifications will be sent to the
* listeners which have options that have been changed, added or removed.
* </p>
* @param options the new set of options
* @since 3.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private int findOldestGeneration(String managedFile) {
int generation = Integer.parseInt(file.substring(len));
if (generation > oldestGeneration)
oldestGeneration = generation;
}catch (NumberFormatException e) {
} catch (NumberFormatException e) {
continue;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public abstract class NLS {
private static String[] nlSuffixes;
private static final String PROP_WARNINGS = "osgi.nls.warnings"; //$NON-NLS-1$
private static final String IGNORE = "ignore"; //$NON-NLS-1$
private static final boolean ignoreWarnings = AccessController
.doPrivileged((PrivilegedAction<Boolean>) () -> IGNORE.equals(System.getProperty(PROP_WARNINGS)));
private static final boolean ignoreWarnings = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> IGNORE.equals(System.getProperty(PROP_WARNINGS)));

/*
* NOTE do not change the name of this field; it is set by the Framework using reflection
Expand Down

0 comments on commit 88b757f

Please sign in to comment.