Przeglądaj źródła

meetup: removed public class modifiers as per #1081

* "#1081 Removed public class modifiers"

* Changed Meetup method to private per comments on Pull Request #1082

* Made Meetup method public again as it did not pass the checks for Pull Request #1082.

* Changed MeetupTest.java to private per comments on Pull Request #1082

* Made MeetupTest public again as it failed testing.

* Made Meetup method package-private per comments on Pull Request #1082.

* Corrected access modifiers per suggestions on Pull Request #1082.

Removed package-private from Meetup method and removed private from
cycleToPrev and cycleToNext methods.

* Added private access levels back to cycleToPrev and cycleToNext.

Per feedback on pull request #1082 added the private access levels back
to these two methods.
Christopher Thornton 8 lat temu
rodzic
commit
1375a55e20

+ 2
- 2
exercises/meetup/.meta/src/reference/java/Meetup.java Wyświetl plik

@@ -2,10 +2,10 @@ import java.time.LocalDate;
2 2
 import java.time.DayOfWeek;
3 3
 
4 4
 
5
-public class Meetup {
5
+class Meetup {
6 6
     private final LocalDate startOfMonth;
7 7
 
8
-    public Meetup(int monthOfYear, int year) {
8
+    Meetup(int monthOfYear, int year) {
9 9
         startOfMonth = LocalDate.of(year, monthOfYear, 1);
10 10
     }
11 11
 

+ 1
- 1
exercises/meetup/.meta/src/reference/java/MeetupSchedule.java Wyświetl plik

@@ -1,4 +1,4 @@
1
-public enum MeetupSchedule {
1
+enum MeetupSchedule {
2 2
     FIRST,
3 3
     SECOND,
4 4
     THIRD,

+ 1
- 1
exercises/meetup/src/main/java/MeetupSchedule.java Wyświetl plik

@@ -1,4 +1,4 @@
1
-public enum MeetupSchedule {
1
+enum MeetupSchedule {
2 2
     FIRST,
3 3
     SECOND,
4 4
     THIRD,