mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Reverted several Java 8 functions to their Java 7 counterparts for Android compatibility.
This commit is contained in:
@@ -359,7 +359,7 @@ public class AbilityUtils {
|
||||
if (StringUtils.isNumeric(amount)) {
|
||||
int val = Integer.parseInt(amount);
|
||||
if (maxto) {
|
||||
val = Integer.max(val, 0);
|
||||
val = Math.max(val, 0);
|
||||
}
|
||||
return val * multiplier;
|
||||
}
|
||||
@@ -399,7 +399,7 @@ public class AbilityUtils {
|
||||
if (StringUtils.isNumeric(svarval)) {
|
||||
int val = Integer.parseInt(svarval);
|
||||
if (maxto) {
|
||||
val = Integer.max(val, 0);
|
||||
val = Math.max(val, 0);
|
||||
}
|
||||
return val * multiplier;
|
||||
}
|
||||
@@ -472,7 +472,7 @@ public class AbilityUtils {
|
||||
|
||||
if (val != null) {
|
||||
if (maxto) {
|
||||
val = Integer.max(val, 0);
|
||||
val = Math.max(val, 0);
|
||||
}
|
||||
return val * multiplier;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ public class BoosterDraft implements IBoosterDraft {
|
||||
if (myDrafts.isEmpty()) {
|
||||
SOptionPane.showMessageDialog("No custom draft files found.");
|
||||
} else {
|
||||
myDrafts.sort(new Comparator<CustomLimited>() {
|
||||
Collections.sort(myDrafts, new Comparator<CustomLimited>() {
|
||||
@Override
|
||||
public int compare(CustomLimited o1, CustomLimited o2) {
|
||||
return o1.getName().compareTo(o2.getName());
|
||||
|
||||
Reference in New Issue
Block a user