Skip to content

Commit

Permalink
Fixing compilation error for openjdk version "1.8.0_212"
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrichev committed Aug 10, 2019
1 parent a803018 commit a2ca96c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions diuf/sudoku/io/SudokuIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ public static ErrorMessage loadFromClipboard(Grid grid) {
if (result == RES_OK) // success
return null;
if (result == RES_WARN) // warning
return new ErrorMessage(WARNING_MSG, false);
return new ErrorMessage(WARNING_MSG, false, (Object[])null);
else // error
return new ErrorMessage(ERROR_MSG, true);
return new ErrorMessage(ERROR_MSG, true, (Object[])null);
} catch (IOException ex) {
return new ErrorMessage("Error while copying:\n{0}", ex);
} catch (UnsupportedFlavorException ex) {
Expand Down Expand Up @@ -257,10 +257,10 @@ public static ErrorMessage loadFromFile(Grid grid, File file) {
int result = loadFromReader(grid, reader);
if (result == RES_OK)
return null;
else if (result == RES_WARN)
return new ErrorMessage(WARNING_MSG, false);
else
return new ErrorMessage(ERROR_MSG, true);
if (result == RES_WARN) // warning
return new ErrorMessage(WARNING_MSG, false, (Object[])null);
else // error
return new ErrorMessage(ERROR_MSG, true, (Object[])null);
} catch (FileNotFoundException ex) {
return new ErrorMessage("File not found: {0}", file);
} catch (IOException ex) {
Expand Down

0 comments on commit a2ca96c

Please sign in to comment.