Skip to content

Commit 740ed5f

Browse files
author
Torben Hørup
committed
Adjust lombok statements to correct syntax
1 parent d6971da commit 740ed5f

19 files changed

+138
-133
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
/target/
22
/.idea/
3-
pircbotx.iml
3+
pircbotx.iml
4+
5+
#ignore eclipse
6+
.classpath
7+
.project
8+
.settings

src/main/java/org/pircbotx/hooks/events/ActionEvent.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@ public class ActionEvent extends Event implements GenericMessageEvent, GenericCh
4444
/**
4545
* The user hostmask that sent the action.
4646
*/
47-
@Getter(onMethod = @_(
48-
@Override))
47+
@Getter(onMethod = @_({
48+
@Override}))
4949
protected final UserHostmask userHostmask;
5050
/**
5151
* The user that sent the action.
5252
*/
53-
@Getter(onMethod = @_(
53+
@Getter(onMethod = @_({
5454
@Override,
55-
@Nullable))
55+
@Nullable}))
5656
protected final User user;
5757
/**
5858
* The channel that the action message was sent in. A value of
5959
* <code>null</code> means that this is a private message, not a channel
6060
*/
61-
@Getter(onMethod = @_(
61+
@Getter(onMethod = @_({
6262
@Override,
63-
@Nullable))
63+
@Nullable}))
6464
protected final Channel channel;
6565
/**
6666
* The raw channel name, could be a special mode message eg +#channel that

src/main/java/org/pircbotx/hooks/events/HalfOpEvent.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,34 @@ public class HalfOpEvent extends Event implements GenericChannelModeRecipientEve
4545
/**
4646
* The channel in which the mode change took place.
4747
*/
48-
@Getter(onMethod = @_(
49-
@Override))
48+
@Getter(onMethod = @_({
49+
@Override}))
5050
protected final Channel channel;
5151
/**
5252
* The user hostmask that performed the mode change.
5353
*/
54-
@Getter(onMethod = @_(
55-
@Override))
54+
@Getter(onMethod = @_({
55+
@Override}))
5656
protected final UserHostmask userHostmask;
5757
/**
5858
* The user that performed the mode change.
5959
*/
60-
@Getter(onMethod = @_(
60+
@Getter(onMethod = @_({
6161
@Override,
62-
@Nullable))
62+
@Nullable}))
6363
protected final User user;
6464
/**
6565
* The user hostmask that received the half-op
6666
*/
67-
@Getter(onMethod = @_(
68-
@Override))
67+
@Getter(onMethod = @_({
68+
@Override}))
6969
protected final UserHostmask recipientHostmask;
7070
/**
7171
* The user that received the half-op
7272
*/
73-
@Getter(onMethod = @_(
73+
@Getter(onMethod = @_({
7474
@Override,
75-
@Nullable))
75+
@Nullable}))
7676
protected final User recipient;
7777
/**
7878
* If the half-op status was given or removed.

src/main/java/org/pircbotx/hooks/events/IncomingFileTransferEvent.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,27 @@
6565
@Data
6666
@EqualsAndHashCode(callSuper = true)
6767
public class IncomingFileTransferEvent extends Event implements GenericDCCEvent {
68-
@Getter(onMethod = @_(
68+
@Getter(onMethod = @_({
6969
@Override,
70-
@Nullable))
70+
@Nullable}))
7171
protected final User user;
72-
@Getter(onMethod = @_(
73-
@Override))
72+
@Getter(onMethod = @_({
73+
@Override}))
7474
protected final UserHostmask userHostmask;
7575
protected final String rawFilename;
7676
protected final String safeFilename;
77-
@Getter(onMethod = @_(
78-
@Override))
77+
@Getter(onMethod = @_({
78+
@Override}))
7979
protected final InetAddress address;
80-
@Getter(onMethod = @_(
81-
@Override))
80+
@Getter(onMethod = @_({
81+
@Override}))
8282
protected final int port;
8383
protected final long filesize;
84-
@Getter(onMethod = @_(
85-
@Override))
84+
@Getter(onMethod = @_({
85+
@Override}))
8686
protected final String token;
87-
@Getter(onMethod = @_(
88-
@Override))
87+
@Getter(onMethod = @_({
88+
@Override}))
8989
protected final boolean passive;
9090

9191
public IncomingFileTransferEvent(PircBotX bot, @NonNull UserHostmask userHostmask, User user, @NonNull String rawFilename, @NonNull String safeFilename,

src/main/java/org/pircbotx/hooks/events/InviteEvent.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public class InviteEvent extends Event implements GenericUserEvent {
3939
/**
4040
* The user that sent the invite.
4141
*/
42-
@Getter(onMethod = @_(
42+
@Getter(onMethod = @_({
4343
@Override,
44-
@Nullable))
44+
@Nullable}))
4545
protected final User user;
4646
/**
4747
* The user hostmask that sent the invite.
4848
*/
49-
@Getter(onMethod = @_(
50-
@Override))
49+
@Getter(onMethod = @_({
50+
@Override}))
5151
protected final UserHostmask userHostmask;
5252
/**
5353
* The channel that we're being invited to. Provided as a string since we

src/main/java/org/pircbotx/hooks/events/JoinEvent.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ public class JoinEvent extends Event implements GenericChannelUserEvent {
4141
/**
4242
* The channel which somebody joined.
4343
*/
44-
@Getter(onMethod = @_(
45-
@Override))
44+
@Getter(onMethod = @_({
45+
@Override}))
4646
protected final Channel channel;
4747
/**
4848
* The user who joined the channel.
4949
*/
50-
@Getter(onMethod = @_(
50+
@Getter(onMethod = @_({
5151
@Override,
52-
@Nullable))
52+
@Nullable}))
5353
protected final User user;
5454
/**
5555
* The user hostmask who joined the channel.
5656
*/
57-
@Getter(onMethod = @_(
58-
@Override))
57+
@Getter(onMethod = @_({
58+
@Override}))
5959
protected final UserHostmask userHostmask;
6060

6161
public JoinEvent(PircBotX bot, @NonNull Channel channel, @NonNull UserHostmask userHostmask, User user) {

src/main/java/org/pircbotx/hooks/events/KickEvent.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -41,34 +41,34 @@ public class KickEvent extends Event implements GenericChannelModeRecipientEvent
4141
/**
4242
* The channel from which the recipient was kicked.
4343
*/
44-
@Getter(onMethod = @_(
45-
@Override))
44+
@Getter(onMethod = @_({
45+
@Override}))
4646
protected final Channel channel;
4747
/**
4848
* The user hostmask that performed the kick.
4949
*/
50-
@Getter(onMethod = @_(
51-
@Override))
50+
@Getter(onMethod = @_({
51+
@Override}))
5252
protected final UserHostmask userHostmask;
5353
/**
5454
* The user who performed the kick.
5555
*/
56-
@Getter(onMethod = @_(
56+
@Getter(onMethod = @_({
5757
@Override,
58-
@Nullable))
58+
@Nullable}))
5959
protected final User user;
6060
/**
6161
* The unfortunate recipient hostmask of the kick.
6262
*/
63-
@Getter(onMethod = @_(
64-
@Override))
63+
@Getter(onMethod = @_({
64+
@Override}))
6565
protected final UserHostmask recipientHostmask;
6666
/**
6767
* The unfortunate recipient of the kick.
6868
*/
69-
@Getter(onMethod = @_(
69+
@Getter(onMethod = @_({
7070
@Override,
71-
@Nullable))
71+
@Nullable}))
7272
protected final User recipient;
7373
/**
7474
* The reason given by the user who performed the kick.

src/main/java/org/pircbotx/hooks/events/MessageEvent.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class MessageEvent extends Event implements GenericMessageEvent, GenericC
4343
/**
4444
* The channel to which the message was sent.
4545
*/
46-
@Getter(onMethod = @_(
47-
@Override))
46+
@Getter(onMethod = @_({
47+
@Override}))
4848
protected final Channel channel;
4949
/**
5050
* The raw channel name, could be a special mode message eg +#channel that
@@ -54,21 +54,21 @@ public class MessageEvent extends Event implements GenericMessageEvent, GenericC
5454
/**
5555
* The user hostmask who sent the message.
5656
*/
57-
@Getter(onMethod = @_(
58-
@Override))
57+
@Getter(onMethod = @_({
58+
@Override}))
5959
protected final UserHostmask userHostmask;
6060
/**
6161
* The user who sent the message.
6262
*/
63-
@Getter(onMethod = @_(
63+
@Getter(onMethod = @_({
6464
@Override,
65-
@Nullable))
65+
@Nullable}))
6666
protected final User user;
6767
/**
6868
* The actual message sent to the channel.
6969
*/
70-
@Getter(onMethod = @_(
71-
@Override))
70+
@Getter(onMethod = @_({
71+
@Override}))
7272
protected final String message;
7373
/**
7474
* The IrcV3 tags

src/main/java/org/pircbotx/hooks/events/ModeEvent.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,22 @@ public class ModeEvent extends Event implements GenericChannelUserEvent {
4747
/**
4848
* The channel that the mode operation applies to.
4949
*/
50-
@Getter(onMethod = @_(
51-
@Override))
50+
@Getter(onMethod = @_({
51+
@Override}))
5252
protected final Channel channel;
5353
/**
5454
* The user that set the mode.
5555
*/
56-
@Getter(onMethod = @_(
56+
@Getter(onMethod = @_({
5757
@Override,
58-
@Nullable))
58+
@Nullable}))
5959
protected final UserHostmask userHostmask;
6060
/**
6161
* The user that set the mode.
6262
*/
63-
@Getter(onMethod = @_(
63+
@Getter(onMethod = @_({
6464
@Override,
65-
@Nullable))
65+
@Nullable}))
6666
protected final User user;
6767
/**
6868
* The mode that has been set.

src/main/java/org/pircbotx/hooks/events/NickChangeEvent.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public class NickChangeEvent extends Event implements GenericUserEvent {
4848
/**
4949
* The user that changed their nick.
5050
*/
51-
@Getter(onMethod = @_(
52-
@Override))
51+
@Getter(onMethod = @_({
52+
@Override}))
5353
protected final UserHostmask userHostmask;
5454
/**
5555
* The user that changed their nick.
5656
*/
57-
@Getter(onMethod = @_(
57+
@Getter(onMethod = @_({
5858
@Override,
59-
@Nullable))
59+
@Nullable}))
6060
protected final User user;
6161

6262
public NickChangeEvent(PircBotX bot, @NonNull String oldNick, @NonNull String newNick,

src/main/java/org/pircbotx/hooks/events/NoticeEvent.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ public class NoticeEvent extends Event implements GenericMessageEvent, GenericCh
4343
/**
4444
* The user hostmask that sent the hostmask.
4545
*/
46-
@Getter(onMethod = @_(
47-
@Override))
46+
@Getter(onMethod = @_({
47+
@Override}))
4848
protected final UserHostmask userHostmask;
4949
/**
5050
* The user that sent the notice.
5151
*/
52-
@Getter(onMethod = @_(
52+
@Getter(onMethod = @_({
5353
@Override,
54-
@Nullable))
54+
@Nullable}))
5555
protected final User user;
5656
/**
5757
* The target channel of the notice. A value of <code>null</code> means that
5858
* the target is us
5959
*/
60-
@Getter(onMethod = @_(
61-
@Override))
60+
@Getter(onMethod = @_({
61+
@Override}))
6262
protected final Channel channel;
6363
/**
6464
* The raw channel name, could be a special mode message eg +#channel that

src/main/java/org/pircbotx/hooks/events/OpEvent.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,34 @@ public class OpEvent extends Event implements GenericChannelModeRecipientEvent {
4343
/**
4444
* The channel in which the mode change took place.
4545
*/
46-
@Getter(onMethod = @_(
47-
@Override))
46+
@Getter(onMethod = @_({
47+
@Override}))
4848
protected final Channel channel;
4949
/**
5050
* The user hostmask that performed the mode change
5151
*/
52-
@Getter(onMethod = @_(
53-
@Override))
52+
@Getter(onMethod = @_({
53+
@Override}))
5454
protected final UserHostmask userHostmask;
5555
/**
5656
* The user that performed the mode change
5757
*/
58-
@Getter(onMethod = @_(
58+
@Getter(onMethod = @_({
5959
@Override,
60-
@Nullable))
60+
@Nullable}))
6161
protected final User user;
6262
/**
6363
* The user hostmask that received the Operator status
6464
*/
65-
@Getter(onMethod = @_(
66-
@Override))
65+
@Getter(onMethod = @_({
66+
@Override}))
6767
protected final UserHostmask recipientHostmask;
6868
/**
6969
* The user that received the Operator status
7070
*/
71-
@Getter(onMethod = @_(
71+
@Getter(onMethod = @_({
7272
@Override,
73-
@Nullable))
73+
@Nullable}))
7474
protected final User recipient;
7575
/**
7676
* If the operator status was given or removed.

0 commit comments

Comments
 (0)