mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
move this back
This commit is contained in:
parent
a24aa6a962
commit
7d0f3618c9
@ -1,4 +1,4 @@
|
|||||||
package dev.plex.toml;
|
package com.moandjiezana.toml;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -1,12 +1,12 @@
|
|||||||
package dev.plex.toml;
|
package com.moandjiezana.toml;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import static dev.plex.toml.ValueWriters.WRITERS;
|
import static com.moandjiezana.toml.ValueWriters.WRITERS;
|
||||||
|
|
||||||
class TableArrayValueWriter extends dev.plex.toml.ArrayValueWriter
|
class TableArrayValueWriter extends ArrayValueWriter
|
||||||
{
|
{
|
||||||
static final dev.plex.toml.ValueWriter TABLE_ARRAY_VALUE_WRITER = new TableArrayValueWriter();
|
static final ValueWriter TABLE_ARRAY_VALUE_WRITER = new TableArrayValueWriter();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canWrite(Object value) {
|
public boolean canWrite(Object value) {
|
||||||
@ -14,10 +14,10 @@ class TableArrayValueWriter extends dev.plex.toml.ArrayValueWriter
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(Object from, dev.plex.toml.WriterContext context) {
|
public void write(Object from, WriterContext context) {
|
||||||
Collection<?> values = normalize(from);
|
Collection<?> values = normalize(from);
|
||||||
|
|
||||||
dev.plex.toml.WriterContext subContext = context.pushTableFromArray();
|
WriterContext subContext = context.pushTableFromArray();
|
||||||
|
|
||||||
for (Object value : values) {
|
for (Object value : values) {
|
||||||
WRITERS.findWriterFor(value).write(value, subContext);
|
WRITERS.findWriterFor(value).write(value, subContext);
|
@ -1,4 +1,4 @@
|
|||||||
package dev.plex.toml;
|
package com.moandjiezana.toml;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
@ -1,4 +1,4 @@
|
|||||||
package dev.plex.toml;
|
package com.moandjiezana.toml;
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user