Skip to content

Commit

Permalink
Removed unused code, and some refactoring in connection with reflecti…
Browse files Browse the repository at this point in the history
…on rewrite
  • Loading branch information
aaberg committed Sep 20, 2024
1 parent 597ef8b commit 657d89c
Show file tree
Hide file tree
Showing 36 changed files with 6 additions and 1,391 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/sql2o/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.sql2o.logging.LocalLoggerFactory;
import org.sql2o.logging.Logger;
import org.sql2o.quirks.Quirks;
import org.sql2o.reflection.PojoIntrospector;
import org.sql2o.reflection2.PojoIntrospector;

import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
Expand Down
10 changes: 4 additions & 6 deletions core/src/main/java/org/sql2o/data/Row.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,11 @@ public String getString(String columnName){
* View row as a simple map.
*/
public Map<String, Object> asMap() {
Map map = new HashMap();
final var map = new HashMap<String, Object>();
Set<String> keys = columnNameToIdxMap.keySet();
Iterator iterator = keys.iterator();
while (iterator.hasNext()) {
String colum = iterator.next().toString();
int index = columnNameToIdxMap.get(colum);
map.put(colum, values[index]);
for (String key : keys) {
int index = columnNameToIdxMap.get(key);
map.put(key, values[index]);
}
return map;
}
Expand Down
61 changes: 0 additions & 61 deletions core/src/main/java/org/sql2o/reflection/FactoryFacade.java

This file was deleted.

32 changes: 0 additions & 32 deletions core/src/main/java/org/sql2o/reflection/FieldGetter.java

This file was deleted.

10 changes: 0 additions & 10 deletions core/src/main/java/org/sql2o/reflection/FieldGetterFactory.java

This file was deleted.

34 changes: 0 additions & 34 deletions core/src/main/java/org/sql2o/reflection/FieldSetter.java

This file was deleted.

14 changes: 0 additions & 14 deletions core/src/main/java/org/sql2o/reflection/FieldSetterFactory.java

This file was deleted.

12 changes: 0 additions & 12 deletions core/src/main/java/org/sql2o/reflection/Getter.java

This file was deleted.

37 changes: 0 additions & 37 deletions core/src/main/java/org/sql2o/reflection/MethodGetter.java

This file was deleted.

10 changes: 0 additions & 10 deletions core/src/main/java/org/sql2o/reflection/MethodGetterFactory.java

This file was deleted.

38 changes: 0 additions & 38 deletions core/src/main/java/org/sql2o/reflection/MethodSetter.java

This file was deleted.

14 changes: 0 additions & 14 deletions core/src/main/java/org/sql2o/reflection/MethodSetterFactory.java

This file was deleted.

12 changes: 0 additions & 12 deletions core/src/main/java/org/sql2o/reflection/ObjectConstructor.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 657d89c

Please sign in to comment.