Skip to content

Commit d3c60a0

Browse files
committed
Sync with underscore-java
1 parent dccb973 commit d3c60a0

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

src/main/java/com/github/underscore/U.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3499,15 +3499,15 @@ public static Map<String, Object> propertiesToMap(Properties properties) {
34993499
if (properties != null && !properties.isEmpty()) {
35003500
Enumeration<?> enumProperties = properties.propertyNames();
35013501
while (enumProperties.hasMoreElements()) {
3502-
String name = (String)enumProperties.nextElement();
3502+
String name = (String) enumProperties.nextElement();
35033503
map.put(name, properties.getProperty(name));
35043504
}
35053505
}
35063506
return map;
35073507
}
35083508

35093509
public static Properties mapToProperties(Map<String, Object> map) {
3510-
Properties properties = new Properties();
3510+
Properties properties = new Properties();
35113511
if (map != null) {
35123512
for (final Map.Entry<String, Object> entry : map.entrySet()) {
35133513
if (!isNull(entry.getValue())) {

src/main/java/com/github/underscore/Underscore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
import java.util.function.UnaryOperator;
5555

5656
/**
57-
* Underscore-java17 is a java 17 port of Underscore.js.
57+
* Underscore-java is a java port of Underscore.js.
5858
*
5959
* @author Valentyn Kolesnikov
6060
*/
@@ -3814,7 +3814,7 @@ public static <T> Predicate<T> or(
38143814

38153815
public static void main(String... args) {
38163816
final String message =
3817-
"Underscore-java17 is a java 17 port of Underscore.js.\n\n"
3817+
"Underscore-java is a java port of Underscore.js.\n\n"
38183818
+ "In addition to porting Underscore's functionality,"
38193819
+ " Underscore-java includes matching unit tests.\n\n"
38203820
+ "For docs, license, tests, and downloads, see: https://javadev.github.io/underscore-java";

src/main/javascript/underscore.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/java/com/github/underscore/ArraysTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,7 @@ void interpose() {
384384
assertEquals("[a, b]", new Underscore<>(singletonList("a, b")).interpose(null).toString());
385385
assertEquals("[a]", Underscore.chain(singletonList("a")).interpose("interpose").toString());
386386
assertEquals(
387-
"[]",
388-
Underscore.chain(new ArrayList<Object>()).interpose("interpose").toString());
387+
"[]", Underscore.chain(new ArrayList<Object>()).interpose("interpose").toString());
389388
assertEquals(
390389
"[a, b, c]", Underscore.chain(asList("a", "b", "c")).interpose(null).toString());
391390
assertEquals(

src/test/java/com/github/underscore/CollectionsTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,8 +1688,7 @@ void toCardinalityMap() {
16881688
assertEquals(
16891689
"{a=2, b=1, c=2}",
16901690
new Underscore<>(asList("a", "a", "b", "c", "c")).toCardinalityMap().toString());
1691-
assertEquals(
1692-
"{}", new Underscore<>(new ArrayList<Object>()).toCardinalityMap().toString());
1691+
assertEquals("{}", new Underscore<>(new ArrayList<Object>()).toCardinalityMap().toString());
16931692
}
16941693

16951694
/*

0 commit comments

Comments
 (0)