Skip to content

Commit

Permalink
GH-77 Update to panda-utilities 0.5.0-alpha (Resolve #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Jul 17, 2021
1 parent 0588b12 commit 425f9f3
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 32 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ repositories {
dependencies {
// Default
implementation 'net.dzikoysk:cdn:1.8.1'
implementation 'net.dzikoysk:cdn:1.9.0'
// Kotlin wrapper
implementation 'net.dzikoysk:cdn-kt:1.8.1'
implementation 'net.dzikoysk:cdn-kt:1.9.0'
}
```

Expand Down
4 changes: 2 additions & 2 deletions cdn-kt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>cdn-parent</artifactId>
<groupId>net.dzikoysk</groupId>
<version>1.8.1</version>
<version>1.9.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -37,7 +37,7 @@
<dependency>
<groupId>net.dzikoysk</groupId>
<artifactId>cdn</artifactId>
<version>1.8.1</version>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down
4 changes: 2 additions & 2 deletions cdn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>cdn-parent</artifactId>
<groupId>net.dzikoysk</groupId>
<version>1.8.1</version>
<version>1.9.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>org.panda-lang</groupId>
<artifactId>panda-utilities</artifactId>
<version>0.4.0-alpha</version>
<version>0.5.0-alpha</version>
</dependency>

<!-- Benchmarks -->
Expand Down
2 changes: 1 addition & 1 deletion cdn/src/main/java/net/dzikoysk/cdn/Cdn.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import net.dzikoysk.cdn.model.Configuration;
import net.dzikoysk.cdn.model.Element;
import org.panda_lang.utilities.commons.FileUtils;
import panda.utilities.FileUtils;

import java.io.File;
import java.io.IOException;
Expand Down
4 changes: 2 additions & 2 deletions cdn/src/main/java/net/dzikoysk/cdn/CdnDeserializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import net.dzikoysk.cdn.model.Element;
import net.dzikoysk.cdn.model.Section;
import net.dzikoysk.cdn.serialization.Deserializer;
import org.panda_lang.utilities.commons.ObjectUtils;
import org.panda_lang.utilities.commons.function.Option;
import panda.std.Option;
import panda.utilities.ObjectUtils;

import java.lang.reflect.Field;

Expand Down
4 changes: 2 additions & 2 deletions cdn/src/main/java/net/dzikoysk/cdn/CdnReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import net.dzikoysk.cdn.model.Element;
import net.dzikoysk.cdn.model.Section;
import net.dzikoysk.cdn.model.Unit;
import org.panda_lang.utilities.commons.StringUtils;
import org.panda_lang.utilities.commons.function.Option;
import panda.std.Option;
import panda.utilities.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
4 changes: 2 additions & 2 deletions cdn/src/main/java/net/dzikoysk/cdn/CdnSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import net.dzikoysk.cdn.serialization.SimpleComposer;
import net.dzikoysk.cdn.serialization.SimpleDeserializer;
import net.dzikoysk.cdn.serialization.SimpleSerializer;
import org.panda_lang.utilities.commons.ClassUtils;
import org.panda_lang.utilities.commons.ObjectUtils;
import panda.utilities.ClassUtils;
import panda.utilities.ObjectUtils;

import java.util.ArrayList;
import java.util.Collection;
Expand Down
2 changes: 1 addition & 1 deletion cdn/src/main/java/net/dzikoysk/cdn/CdnUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import net.dzikoysk.cdn.entity.Exclude;
import net.dzikoysk.cdn.serialization.Composer;
import org.jetbrains.annotations.Nullable;
import org.panda_lang.utilities.commons.ObjectUtils;
import panda.utilities.ObjectUtils;

import java.io.File;
import java.io.IOException;
Expand Down
2 changes: 1 addition & 1 deletion cdn/src/main/java/net/dzikoysk/cdn/CdnWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import net.dzikoysk.cdn.model.Entry;
import net.dzikoysk.cdn.model.Section;
import net.dzikoysk.cdn.model.Unit;
import org.panda_lang.utilities.commons.StringUtils;
import panda.utilities.StringUtils;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import net.dzikoysk.cdn.serialization.Composer;
import net.dzikoysk.cdn.serialization.Deserializer;
import net.dzikoysk.cdn.serialization.Serializer;
import org.panda_lang.utilities.commons.ObjectUtils;
import panda.utilities.ObjectUtils;

import java.lang.reflect.AnnotatedParameterizedType;
import java.lang.reflect.AnnotatedType;
Expand Down
4 changes: 2 additions & 2 deletions cdn/src/main/java/net/dzikoysk/cdn/features/JsonFeature.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package net.dzikoysk.cdn.features;

import net.dzikoysk.cdn.CdnConstants;
import org.panda_lang.utilities.commons.CharacterUtils;
import org.panda_lang.utilities.commons.StringUtils;
import panda.utilities.CharacterUtils;
import panda.utilities.StringUtils;

import java.util.Stack;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

package net.dzikoysk.cdn.features;

import org.panda_lang.utilities.commons.StringUtils;
import panda.utilities.StringUtils;

import static net.dzikoysk.cdn.CdnConstants.*;
import static net.dzikoysk.cdn.CdnConstants.LINE_SEPARATOR;
import static net.dzikoysk.cdn.CdnConstants.OPERATOR;

final class YamlLikeConverter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package net.dzikoysk.cdn.model;

import net.dzikoysk.cdn.CdnConstants;
import org.panda_lang.utilities.commons.StringUtils;
import panda.utilities.StringUtils;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
6 changes: 3 additions & 3 deletions cdn/src/main/java/net/dzikoysk/cdn/model/Section.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import net.dzikoysk.cdn.CdnConstants;
import net.dzikoysk.cdn.CdnUtils;
import org.jetbrains.annotations.Contract;
import org.panda_lang.utilities.commons.ObjectUtils;
import org.panda_lang.utilities.commons.StringUtils;
import org.panda_lang.utilities.commons.function.Option;
import panda.std.Option;
import panda.utilities.ObjectUtils;
import panda.utilities.StringUtils;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
3 changes: 1 addition & 2 deletions cdn/src/main/java/net/dzikoysk/cdn/model/Unit.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
package net.dzikoysk.cdn.model;

import net.dzikoysk.cdn.CdnConstants;
import org.panda_lang.utilities.commons.StringUtils;

import panda.utilities.StringUtils;
import java.util.Collections;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
import net.dzikoysk.cdn.model.Element;
import net.dzikoysk.cdn.model.Entry;
import net.dzikoysk.cdn.model.Unit;
import org.panda_lang.utilities.commons.StringUtils;

import panda.utilities.StringUtils;
import java.lang.reflect.AnnotatedType;
import java.util.List;

Expand All @@ -39,7 +38,7 @@ public interface SimpleSerializer<T> extends Serializer<T> {
default Element<?> serialize(CdnSettings settings, List<String> description, String key, AnnotatedType type, T entity) {
String result = serialize(entity);

return StringUtils.isEmpty(key)
return StringUtils.isEmpty(key)
? new Unit(serialize(entity))
: new Entry(description, key, result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package net.dzikoysk.cdn.model
import groovy.transform.CompileStatic
import net.dzikoysk.cdn.CdnSpec
import org.junit.jupiter.api.Test
import org.panda_lang.utilities.commons.StringUtils

import static org.junit.jupiter.api.Assertions.assertEquals
import static panda.utilities.StringUtils.EMPTY

@CompileStatic
final class ConfigurationTest extends CdnSpec {
Expand All @@ -34,7 +34,7 @@ final class ConfigurationTest extends CdnSpec {

@Test
void 'should contain empty name' () {
assertEquals StringUtils.EMPTY, ROOT.getName()
assertEquals EMPTY, ROOT.getName()
}

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<groupId>net.dzikoysk</groupId>
<artifactId>cdn-parent</artifactId>
<packaging>pom</packaging>
<version>1.8.1</version>
<version>1.9.0</version>

<scm>
<connection>scm:git:https://github.com/dzikoysk/cdn.git</connection>
Expand Down

0 comments on commit 425f9f3

Please sign in to comment.