File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/main/java/pl/koder95/cmf Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
import java .util .stream .Collectors ;
18
18
import java .util .stream .IntStream ;
19
19
20
+ /**
21
+ * Klasa obsługująca wiersz poleceń i jest miejscem startowym dla aplikacji konsolowej.
22
+ */
20
23
public class Main {
21
24
22
25
private Main () {}
@@ -40,7 +43,6 @@ public static void main(String[] args) {
40
43
.hasArg ()
41
44
.type (int [].class )
42
45
.converter (string -> {
43
- System .out .println ("Converting: " + string );
44
46
String digits = "(\\ d)+" ;
45
47
if (string .matches (digits )) {
46
48
return new int [] { Integer .parseInt (string ) };
@@ -52,7 +54,6 @@ public static void main(String[] args) {
52
54
return IntStream .rangeClosed (begin , end ).toArray ();
53
55
} else {
54
56
String [] years = string .split ("\\ ." );
55
- System .out .println ("Parts: " + Arrays .deepToString (years ));
56
57
return Arrays .stream (years ).filter (s -> s .matches (digits )).mapToInt (Integer ::parseInt ).toArray ();
57
58
}
58
59
})
@@ -85,7 +86,7 @@ private static String defaultFilename() {
85
86
}
86
87
87
88
private static List <FinalMFR > generate (int ... years ) {
88
- System .out .println ("Generating for years: " + Arrays .toString (years ));
89
+ System .out .println ("Generating MFR for years: " + Arrays .toString (years ));
89
90
return IntStream .of (years ).sorted ().mapToObj (MFR_Basic ::new ).map (MFR_Basic ::toStable ).map (MFR_Stable ::toFinal ).collect (Collectors .toList ());
90
91
}
91
92
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ public final class Cycle {
14
14
* Typ wyliczeniowy odnoszący się do trzech cykli czytań niedzielnych i uroczystości.
15
15
*/
16
16
public enum Solemnities {
17
- C , A , B ;
17
+ C , A , B
18
18
}
19
19
20
20
/**
21
21
* Typ wyliczeniowy odnoszący się do dwóch cykli czytań dni powszednich (dla ferii).
22
22
*/
23
23
public enum Normal {
24
- II , I ;
24
+ II , I
25
25
}
26
26
27
27
/**
You can’t perform that action at this time.
0 commit comments