Skip to content

Commit 634c50e

Browse files
committed
OCD
1 parent fc1c578 commit 634c50e

File tree

99 files changed

+1005
-1002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1005
-1002
lines changed

checkstyle-suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<suppress checks="JavadocMethod" files="^src[\\/]test[\\/]java"/>
66
<suppress checks="Indentation" files="package-info\.java"/>
77
<suppress checks="AbbreviationAsWordInName" files="TNT"/>
8+
<suppress checks="AbbreviationAsWordInName" files="PVP"/>
89
<suppress checks="AbbreviationAsWordInName" files="PEBKAC"/>
910
<suppress checks=".*" files="SpongeEventFactory\.java"/>
1011
</suppressions>

checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</module>
5454
<module name="LineLength">
5555
<property name="max" value="80"/>
56-
<property name="ignorePattern" value="^[ \t]*([a-zA-Z0-9\{\}\+\|\&amp;\&quot;@\(\)&gt;&lt;]|//)|@link|@see"/>
56+
<property name="ignorePattern" value="^[ \t]*([a-zA-Z0-9\{\}\+\|\&amp;\&quot;@\(\)&gt;&lt;\.]|//)|@link|@see"/>
5757
<message key="maxLineLen" value="Comment line is longer than {0,number,integer} characters (found {1,number,integer})."/>
5858
</module>
5959
<module name="AvoidStarImport"/>

src/main/java/org/spongepowered/api/CatalogTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public final class CatalogTypes {
121121
public static final Class<Difficulty> DIFFICULTY = Difficulty.class;
122122
public static final Class<DimensionType> DIMENSION_TYPE = DimensionType.class;
123123
public static final Class<DirtType> DIRT_TYPE = DirtType.class;
124-
public static final Class<DisguisedBlockType> DISGUSED_BLOCK_TYPE = DisguisedBlockType.class;
124+
public static final Class<DisguisedBlockType> DISGUISED_BLOCK_TYPE = DisguisedBlockType.class;
125125
public static final Class<DoublePlantType> DOUBLE_SIZE_PLANT_TYPE = DoublePlantType.class;
126126
public static final Class<DyeColor> DYE_COLOR = DyeColor.class;
127127
public static final Class<Enchantment> ENCHANTMENT = Enchantment.class;

src/main/java/org/spongepowered/api/Game.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public interface Game {
9191
GameDictionary getGameDictionary();
9292

9393
/**
94-
* Get the game's instance of the service manager, which is the gateway
94+
* Gets the game's instance of the service manager, which is the gateway
9595
* to various services provided by Sponge (command registration and so on).
9696
*
9797
* <p>Services registered by other plugins may be available too.</p>
@@ -124,7 +124,7 @@ public interface Game {
124124
PropertyRegistry getPropertyRegistry();
125125

126126
/**
127-
* Get the command dispatcher used for registering and dispatching
127+
* Gets the command dispatcher used for registering and dispatching
128128
* registered commands.
129129
*
130130
* @return The command dispatcher

src/main/java/org/spongepowered/api/block/BlockState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static Builder builder() {
6262
}
6363

6464
/**
65-
* Get the base type of block.
65+
* Gets the base type of block.
6666
*
6767
* <p>The type does not include block data such as the contents of
6868
* inventories.</p>

src/main/java/org/spongepowered/api/command/args/ArgumentParseException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public String getAnnotatedPosition() {
102102
}
103103

104104
/**
105-
* Get the position of the last fetched argument in the provided source string.
105+
* Gets the position of the last fetched argument in the provided source string.
106106
*
107107
* @return The source string to get position for
108108
*/

src/main/java/org/spongepowered/api/command/args/CommandArgs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public ArgumentParseException createError(Text message) {
110110
}
111111

112112
/**
113-
* Get a list of all arguments as a string. The returned list is immutable.
113+
* Gets a list of all arguments as a string. The returned list is immutable.
114114
*
115115
* @return all arguments
116116
*/
@@ -196,7 +196,7 @@ void previous() {
196196
}
197197

198198
/**
199-
* Get the current position in raw input.
199+
* Gets the current position in raw input.
200200
*
201201
* @return the raw position
202202
*/

src/main/java/org/spongepowered/api/command/args/CommandContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public CommandContext() {
5151
}
5252

5353
/**
54-
* Get all values for the given argument. May return an empty list if no values are present.
54+
* Gets all values for the given argument. May return an empty list if no
55+
* values are present.
5556
*
5657
* @param key The key to get values for
5758
* @param <T> the type of value to get

src/main/java/org/spongepowered/api/command/args/GenericArguments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public List<String> complete(CommandSource src, CommandArgs args, CommandContext
176176
}
177177

178178
/**
179-
* Get a builder to create a command element that parses flags.
179+
* Gets a builder to create a command element that parses flags.
180180
*
181181
* @return the newly created builder
182182
*/

src/main/java/org/spongepowered/api/command/args/PatternMatchingCommandElement.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,22 @@ private Pattern getFormattedPattern(String input) {
8686
}
8787

8888
/**
89-
* Get the available choices for this command source.
89+
* Gets the available choices for this command source.
9090
*
9191
* @param source The source requesting choices
9292
* @return the possible choices
9393
*/
9494
protected abstract Iterable<String> getChoices(CommandSource source);
9595

9696
/**
97-
* Get the value for a given choice. For any result in {@link #getChoices(CommandSource)}, this must return a non-null value. Otherwise, an
98-
* {@link IllegalArgumentException} may be throw.
97+
* Gets the value for a given choice. For any result in
98+
* {@link #getChoices(CommandSource)}, this must return a non-null value.
99+
* Otherwise, an {@link IllegalArgumentException} may be throw.
99100
*
100101
* @param choice The specified choice
101102
* @return the choice's value
102-
* @throws IllegalArgumentException if the input string is not any return value of {@link #getChoices(CommandSource)}
103+
* @throws IllegalArgumentException if the input string is not any return
104+
* value of {@link #getChoices(CommandSource)}
103105
*/
104106
protected abstract Object getValue(String choice) throws IllegalArgumentException;
105107
}

0 commit comments

Comments
 (0)