Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 49b4475

Browse files
author
Dytanic
committed
reformat code
1 parent 016e9c7 commit 49b4475

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

cloudnet-api/cloudnet-api-bridge/src/main/java/de/dytanic/cloudnet/bridge/internal/command/proxied/CommandCloud.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ public Iterable<String> onTabComplete(CommandSender commandSender, String[] args
664664
break;
665665
}
666666
}
667-
return new LinkedList<>(StringUtil.copyPartialMatches(args[args.length-1], tabCompletes, new ArrayList<>(tabCompletes.size())));
667+
return new LinkedList<>(StringUtil.copyPartialMatches(args[args.length - 1], tabCompletes, new ArrayList<>(tabCompletes.size())));
668668
}
669669

670670
private LinkedList<String> getProxyAndServerGroups()

cloudnet-api/cloudnet-api-bridge/src/main/java/de/dytanic/cloudnet/bridge/internal/util/StringUtil.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@
22

33
import java.util.Collection;
44

5-
public class StringUtil
6-
{
7-
public static <T extends Collection<? super String>> T copyPartialMatches(final String token, final Iterable<String> originals, final T collection) throws UnsupportedOperationException, IllegalArgumentException {
5+
public class StringUtil {
6+
public static <T extends Collection<? super String>> T copyPartialMatches(final String token, final Iterable<String> originals, final T collection) throws UnsupportedOperationException, IllegalArgumentException
7+
{
88

9-
for (String string : originals) {
10-
if (startsWithIgnoreCase(string, token)) {
9+
for (String string : originals)
10+
{
11+
if (startsWithIgnoreCase(string, token))
12+
{
1113
collection.add(string);
1214
}
1315
}
1416

1517
return collection;
1618
}
17-
public static boolean startsWithIgnoreCase(final String string, final String prefix) throws IllegalArgumentException, NullPointerException {
18-
if (string.length() < prefix.length()) {
19-
return false;
20-
}
21-
return string.regionMatches(true, 0, prefix, 0, prefix.length());
22-
}
19+
20+
public static boolean startsWithIgnoreCase(final String string, final String prefix) throws IllegalArgumentException, NullPointerException
21+
{
22+
if (string.length() < prefix.length())
23+
{
24+
return false;
25+
}
26+
return string.regionMatches(true, 0, prefix, 0, prefix.length());
27+
}
2328
}

cloudnet-core/src/main/resources/files/log.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626

2727

28+
2829
</style>
2930
</head>
3031
<body>

0 commit comments

Comments
 (0)