Browse Source

Remove lombok

Change-Id: Icabc404bb9788e0a8609bc30111083104afd616d
Reviewed-on: http://gerrit.dmdirc.com/2988
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.8rc1
Greg Holmes 10 years ago
parent
commit
6cf90d4212

+ 4
- 4
src/com/dmdirc/events/DMDircEvent.java View File

@@ -22,18 +22,14 @@
22 22
 
23 23
 package com.dmdirc.events;
24 24
 
25
-import lombok.Getter;
26
-
27 25
 /**
28 26
  * Base class for all DMDirc events.
29 27
  */
30
-@SuppressWarnings("PMD.UnusedPrivateField")
31 28
 public abstract class DMDircEvent {
32 29
 
33 30
     /**
34 31
      * The timestamp the event was triggered at, in milliseconds.
35 32
      */
36
-    @Getter
37 33
     private final long timestamp;
38 34
 
39 35
     /**
@@ -52,4 +48,8 @@ public abstract class DMDircEvent {
52 48
         this.timestamp = System.currentTimeMillis();
53 49
     }
54 50
 
51
+    public long getTimestamp() {
52
+        return timestamp;
53
+    }
54
+
55 55
 }

+ 18
- 6
src/com/dmdirc/lists/GroupListEntry.java View File

@@ -22,15 +22,9 @@
22 22
 
23 23
 package com.dmdirc.lists;
24 24
 
25
-import lombok.Getter;
26
-import lombok.RequiredArgsConstructor;
27
-
28 25
 /**
29 26
  * Represents a single entry returned by a group list request.
30 27
  */
31
-@RequiredArgsConstructor
32
-@Getter
33
-@SuppressWarnings("PMD.UnusedPrivateField")
34 28
 public class GroupListEntry {
35 29
 
36 30
     /** The name of the group. */
@@ -42,4 +36,22 @@ public class GroupListEntry {
42 36
     /** The current topic of the group. */
43 37
     private final String topic;
44 38
 
39
+    public GroupListEntry(final String name, final int users, final String topic) {
40
+        this.name = name;
41
+        this.users = users;
42
+        this.topic = topic;
43
+    }
44
+
45
+    public String getName() {
46
+        return name;
47
+    }
48
+
49
+    public int getUsers() {
50
+        return users;
51
+    }
52
+
53
+    public String getTopic() {
54
+        return topic;
55
+    }
56
+
45 57
 }

+ 8
- 5
src/com/dmdirc/lists/GroupListManager.java View File

@@ -35,13 +35,9 @@ import com.dmdirc.util.collections.ObservableListDecorator;
35 35
 import java.util.Date;
36 36
 import java.util.LinkedList;
37 37
 
38
-import lombok.Getter;
39
-import lombok.RequiredArgsConstructor;
40
-
41 38
 /**
42 39
  * Manages a group list request.
43 40
  */
44
-@RequiredArgsConstructor
45 41
 public class GroupListManager implements GroupListStartListener,
46 42
         GroupListEntryListener, GroupListEndListener {
47 43
 
@@ -52,10 +48,17 @@ public class GroupListManager implements GroupListStartListener,
52 48
     private final Connection connection;
53 49
 
54 50
     /** The cached groups. */
55
-    @Getter
56 51
     private final ObservableList<GroupListEntry> groups
57 52
             = new ObservableListDecorator<>(new LinkedList<GroupListEntry>());
58 53
 
54
+    public GroupListManager(final Connection connection) {
55
+        this.connection = connection;
56
+    }
57
+
58
+    public ObservableList<GroupListEntry> getGroups() {
59
+        return groups;
60
+    }
61
+
59 62
     /**
60 63
      * Starts a search with the given search terms.
61 64
      *

Loading…
Cancel
Save