-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: #101 Remove kefir's StringUtils.concat usage from kgparser-srv…
… module.
- Loading branch information
1 parent
b22af04
commit 7f4a4df
Showing
5 changed files
with
12 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
|
||
import java.util.Comparator; | ||
|
||
import static su.opencode.kefir.util.StringUtils.concat; | ||
|
||
/** | ||
* Copyright 2014 <a href="mailto:[email protected]">Dmitriy Popov</a>. | ||
* $HeadURL$ | ||
|
@@ -24,11 +22,11 @@ public int compare(PlayerRoundResult o1, PlayerRoundResult o2) { | |
|
||
// check place1 validity | ||
if ( (place1 != null) && (!PlayerRoundResult.isCorrectPlace(place1)) ) | ||
throw new IllegalArgumentException( concat("Incorrect player1 place: ", place1) ); | ||
throw new IllegalArgumentException( String.format("Incorrect player1 place: %d.", place1) ); | ||
|
||
// check place2 validity | ||
if ( (place2 != null) && (!PlayerRoundResult.isCorrectPlace(place2)) ) | ||
throw new IllegalArgumentException( concat("Incorrect player2 place: ", place2) ); | ||
throw new IllegalArgumentException( String.format("Incorrect player2 place: %d.", place2) ); | ||
|
||
if ( (place1 == null) && (place2 == null) ) | ||
return 0; // undefined order | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
|
||
import java.nio.charset.StandardCharsets; | ||
|
||
import static su.opencode.kefir.util.StringUtils.concat; | ||
|
||
/** | ||
* Copyright 2014 <a href="mailto:[email protected]">Dmitriy Popov</a>. | ||
* $HeadURL$ | ||
|
@@ -16,7 +14,7 @@ | |
public class ConfigurationLoader | ||
{ | ||
public String readConfigurationFile(String filePath) { | ||
String path = concat( System.getProperty("jboss.server.home.dir"), "/conf/", filePath); | ||
String path = System.getProperty("jboss.server.home.dir") + "/conf/" + filePath; | ||
byte[] bytes = FileUtils.readFile(path); | ||
return new String(bytes, StandardCharsets.UTF_8); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters