Skip to content

Commit 4ca441c

Browse files
committed
Fix silly build warnings
1 parent befd8ca commit 4ca441c

File tree

2 files changed

+14
-4
lines changed
  • canteen
    • canteen-it/src/main/java/com/salesforce/servicelibs/canteen/it
    • canteen-maven-plugin/src/main/java/com/salesforce/servicelibs/canteen

2 files changed

+14
-4
lines changed

canteen/canteen-it/src/main/java/com/salesforce/servicelibs/canteen/it/Main.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@
77

88
package com.salesforce.servicelibs.canteen.it;
99

10-
import com.google.common.base.Strings;
11-
1210
import java.io.BufferedReader;
1311
import java.io.InputStreamReader;
1412

13+
/**
14+
* This program does nothing useful. It's only serves as a java program to bundle with Canteen.
15+
*/
1516
public final class Main {
1617
private Main() { }
1718

1819
private static final int THE_ANSWER_TO_EVERYTHING = 42;
1920

21+
/**
22+
* Succeed or fail on command.
23+
* @param args 1, 0, or nothing
24+
* @throws Exception if something breaks
25+
*/
2026
public static void main(String[] args) throws Exception {
2127
String choice;
2228

2329
if (args.length == 1) {
2430
choice = args[0];
2531
} else {
26-
System.out.print("1 = Success, 0 = Failure >" + Strings.repeat(" ", 2));
32+
System.out.print("1 = Success, 0 = Failure > ");
2733
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
2834
choice = br.readLine();
2935
}

canteen/canteen-maven-plugin/src/main/java/com/salesforce/servicelibs/canteen/BootstrapMojo.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@
3535
import static java.util.Collections.emptyMap;
3636
import static java.util.Collections.singleton;
3737

38+
/**
39+
* BootstrapMojo creates new Maven artifacts for each supported platform by prepending the platform-specific
40+
* bootstrap to the default artifact jar file.
41+
*/
3842
@Mojo(name = "bootstrap", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE, threadSafe = true)
3943
public class BootstrapMojo extends AbstractMojo {
4044
private static final String CANTEEN_BOOTSTRAP = "canteen-bootstrap";
41-
private static final List<String> PLATFORMS = Arrays.asList("osx-x86_64", "linux-x86_64", "windows-x86_64");
45+
private static final List<String> PLATFORMS = Arrays.asList("osx-x86_64", "osx-aarch_64", "linux-x86_64", "linux-aarch_64", "windows-x86_64");
4246

4347
@Component
4448
private RepositorySystem repositorySystem;

0 commit comments

Comments
 (0)