Skip to content

Commit 667dd6e

Browse files
committed
Fix C-Style array declarations
1 parent 54a10c4 commit 667dd6e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/com/github/theholywaffle/teamspeak3/TS3Api.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ public FileInfo getFileInfo(String filePath, int channelId, String channelPasswo
21722172
* @see FileInfo#getPath()
21732173
* @see Channel#getId()
21742174
*/
2175-
public List<FileInfo> getFileInfos(String filePaths[], int channelId) {
2175+
public List<FileInfo> getFileInfos(String[] filePaths, int channelId) {
21762176
return asyncApi.getFileInfos(filePaths, channelId).getUninterruptibly();
21772177
}
21782178

@@ -2198,7 +2198,7 @@ public List<FileInfo> getFileInfos(String filePaths[], int channelId) {
21982198
* @see FileInfo#getPath()
21992199
* @see Channel#getId()
22002200
*/
2201-
public List<FileInfo> getFileInfos(String filePaths[], int channelId, String channelPassword) {
2201+
public List<FileInfo> getFileInfos(String[] filePaths, int channelId, String channelPassword) {
22022202
return asyncApi.getFileInfos(filePaths, channelId, channelPassword).getUninterruptibly();
22032203
}
22042204

@@ -2226,7 +2226,7 @@ public List<FileInfo> getFileInfos(String filePaths[], int channelId, String cha
22262226
* @see FileInfo#getPath()
22272227
* @see Channel#getId()
22282228
*/
2229-
public List<FileInfo> getFileInfos(String filePaths[], int[] channelIds, String[] channelPasswords) {
2229+
public List<FileInfo> getFileInfos(String[] filePaths, int[] channelIds, String[] channelPasswords) {
22302230
return asyncApi.getFileInfos(filePaths, channelIds, channelPasswords).getUninterruptibly();
22312231
}
22322232

src/main/java/com/github/theholywaffle/teamspeak3/TS3ApiAsync.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,7 +2501,7 @@ public CommandFuture<FileInfo> getFileInfo(String filePath, int channelId, Strin
25012501
* @see FileInfo#getPath()
25022502
* @see Channel#getId()
25032503
*/
2504-
public CommandFuture<List<FileInfo>> getFileInfos(String filePaths[], int channelId) {
2504+
public CommandFuture<List<FileInfo>> getFileInfos(String[] filePaths, int channelId) {
25052505
return getFileInfos(filePaths, channelId, null);
25062506
}
25072507

@@ -2527,7 +2527,7 @@ public CommandFuture<List<FileInfo>> getFileInfos(String filePaths[], int channe
25272527
* @see FileInfo#getPath()
25282528
* @see Channel#getId()
25292529
*/
2530-
public CommandFuture<List<FileInfo>> getFileInfos(String filePaths[], int channelId, String channelPassword) {
2530+
public CommandFuture<List<FileInfo>> getFileInfos(String[] filePaths, int channelId, String channelPassword) {
25312531
Command cmd = FileCommands.ftGetFileInfo(channelId, channelPassword, filePaths);
25322532
return executeAndTransform(cmd, FileInfo::new);
25332533
}
@@ -2556,7 +2556,7 @@ public CommandFuture<List<FileInfo>> getFileInfos(String filePaths[], int channe
25562556
* @see FileInfo#getPath()
25572557
* @see Channel#getId()
25582558
*/
2559-
public CommandFuture<List<FileInfo>> getFileInfos(String filePaths[], int[] channelIds, String[] channelPasswords) {
2559+
public CommandFuture<List<FileInfo>> getFileInfos(String[] filePaths, int[] channelIds, String[] channelPasswords) {
25602560
Command cmd = FileCommands.ftGetFileInfo(channelIds, channelPasswords, filePaths);
25612561
return executeAndTransform(cmd, FileInfo::new);
25622562
}

0 commit comments

Comments
 (0)