Skip to content

Commit 928da12

Browse files
committed
IO-507: Rename ByteOrderFactory to ByteOrderUtils to have a common naming schema
1 parent bfe3c22 commit 928da12

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The <action> type attribute can be add,update,fix,remove.
111111
Add infinite circular input stream
112112
</action>
113113
<action issue="IO-507" dev="ggregory" type="add">
114-
Add a ByteOrderFactory class.
114+
Add a ByteOrderUtils class.
115115
</action>
116116
<action issue="IO-518" dev="jochen" type="add">
117117
Add ObservableInputStream

src/main/java/org/apache/commons/io/ByteOrderFactory.java renamed to src/main/java/org/apache/commons/io/ByteOrderUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @since 2.6
2727
*/
28-
public final class ByteOrderFactory {
28+
public final class ByteOrderUtils {
2929

3030
private static final Locale ComparisonLocale = Locale.ROOT;
3131

@@ -39,7 +39,7 @@ public final class ByteOrderFactory {
3939
*/
4040
public static final String LITTLE_ENDIAN = "Little";
4141

42-
private ByteOrderFactory() {
42+
private ByteOrderUtils() {
4343
}
4444

4545
/**
@@ -52,8 +52,8 @@ private ByteOrderFactory() {
5252
* </p>
5353
* Examples:
5454
* <ul>
55-
* <li>{@code ByteOrderFactory.parseByteOrder("little")} returns {@code ByteOrder.LITTLE_ENDIAN}</li>
56-
* <li>{@code ByteOrderFactory.parseByteOrder("big")} returns {@code ByteOrder.BIG_ENDIAN}</li>
55+
* <li>{@code ByteOrderUtils.parseByteOrder("little")} returns {@code ByteOrder.LITTLE_ENDIAN}</li>
56+
* <li>{@code ByteOrderUtils.parseByteOrder("big")} returns {@code ByteOrder.BIG_ENDIAN}</li>
5757
* </ul>
5858
*
5959
* @param value

src/test/java/org/apache/commons/io/ByteOrderFactoryTest.java renamed to src/test/java/org/apache/commons/io/ByteOrderUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
import org.junit.Assert;
2222
import org.junit.Test;
2323

24-
public class ByteOrderFactoryTest {
24+
public class ByteOrderUtilsTest {
2525

2626
private ByteOrder parseByteOrder(final String value) {
27-
return ByteOrderFactory.parseByteOrder(value);
27+
return ByteOrderUtils.parseByteOrder(value);
2828
}
2929

3030
@Test

0 commit comments

Comments
 (0)