Made `file` parameter final
This commit is contained in:
parent
d834c2831e
commit
68292e69c6
|
@ -50,7 +50,7 @@ class Desktop {
|
||||||
* @param file the file to open
|
* @param file the file to open
|
||||||
*/
|
*/
|
||||||
public static
|
public static
|
||||||
void open(File file) throws IOException {
|
void open(final File file) throws IOException {
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
throw new IOException("File must not be null.");
|
throw new IOException("File must not be null.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue