Skip to content

Commit

Permalink
Resolve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Dec 30, 2023
1 parent b76844b commit 5fceca8
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions jsql/src/main/java/org/jaxdb/jsql/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set;
import java.util.UUID;

import org.jaxdb.jsql.Callbacks.OnCommit;
Expand Down Expand Up @@ -446,7 +447,7 @@ public String toString() {

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -1091,7 +1092,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -1261,7 +1262,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -1431,7 +1432,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -1601,7 +1602,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -1771,7 +1772,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -1941,7 +1942,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -2111,7 +2112,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -2281,7 +2282,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -2451,7 +2452,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -2621,7 +2622,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -2791,7 +2792,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -2961,7 +2962,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -3135,7 +3136,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -3305,7 +3306,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -3475,7 +3476,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -3645,7 +3646,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -3815,7 +3816,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -3985,7 +3986,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -4155,7 +4156,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -4325,7 +4326,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -4495,7 +4496,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -4665,7 +4666,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -4835,7 +4836,7 @@ static class SELECT<D extends type.Entity> extends untyped.SELECT<D> implements

@Override
public D AS(final D as) {
((data.Entity)as).wrap(new As<D>(this, as, true));
((data.Entity)as).wrap(new As<>(this, as, true));
return as;
}

Expand Down Expand Up @@ -5127,6 +5128,11 @@ final data.Column<?> getColumn() {
final void compile(final Compilation compilation, final boolean isExpression) throws IOException, SQLException {
root.compile(compilation, isExpression);
}

@Override
Object evaluate(final Set<Evaluable> visited) {
return this.value.get();
}
}

abstract static class THEN<T,D extends data.Column<?>> extends THEN_ELSE<D> {
Expand Down

0 comments on commit 5fceca8

Please sign in to comment.