Skip to content

Commit 046775e

Browse files
author
J Chapman Flack
committed
Whitespace adjustment
Match indentation of relocated code to new surroundings.
1 parent a2da94d commit 046775e

File tree

2 files changed

+69
-69
lines changed

2 files changed

+69
-69
lines changed

pljava-api/src/main/java/org/postgresql/pljava/sqlgen/DDRProcessor.java

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,38 +1119,38 @@ class TypeMapper
11191119
TypeMapper() {
11201120
mappings = new ArrayList<Map.Entry<Class<?>, String>>();
11211121

1122-
// Primitives
1123-
//
1124-
this.addMap(boolean.class, "boolean");
1125-
this.addMap(Boolean.class, "boolean");
1126-
this.addMap(byte.class, "smallint");
1127-
this.addMap(Byte.class, "smallint");
1128-
this.addMap(char.class, "smallint");
1129-
this.addMap(Character.class, "smallint");
1130-
this.addMap(double.class, "double precision");
1131-
this.addMap(Double.class, "double precision");
1132-
this.addMap(float.class, "real");
1133-
this.addMap(Float.class, "real");
1134-
this.addMap(int.class, "integer");
1135-
this.addMap(Integer.class, "integer");
1136-
this.addMap(long.class, "bigint");
1137-
this.addMap(Long.class, "bigint");
1138-
this.addMap(short.class, "smallint");
1139-
this.addMap(Short.class, "smallint");
1140-
1141-
// Known common mappings
1142-
//
1143-
this.addMap(Number.class, "numeric");
1144-
this.addMap(String.class, "varchar");
1145-
this.addMap(java.util.Date.class, "timestamp");
1146-
this.addMap(Timestamp.class, "timestamp");
1147-
this.addMap(Time.class, "time");
1148-
this.addMap(java.sql.Date.class, "date");
1149-
this.addMap(BigInteger.class, "numeric");
1150-
this.addMap(BigDecimal.class, "numeric");
1151-
this.addMap(ResultSet.class, "record");
1152-
1153-
this.addMap(byte[].class, "bytea");
1122+
// Primitives
1123+
//
1124+
this.addMap(boolean.class, "boolean");
1125+
this.addMap(Boolean.class, "boolean");
1126+
this.addMap(byte.class, "smallint");
1127+
this.addMap(Byte.class, "smallint");
1128+
this.addMap(char.class, "smallint");
1129+
this.addMap(Character.class, "smallint");
1130+
this.addMap(double.class, "double precision");
1131+
this.addMap(Double.class, "double precision");
1132+
this.addMap(float.class, "real");
1133+
this.addMap(Float.class, "real");
1134+
this.addMap(int.class, "integer");
1135+
this.addMap(Integer.class, "integer");
1136+
this.addMap(long.class, "bigint");
1137+
this.addMap(Long.class, "bigint");
1138+
this.addMap(short.class, "smallint");
1139+
this.addMap(Short.class, "smallint");
1140+
1141+
// Known common mappings
1142+
//
1143+
this.addMap(Number.class, "numeric");
1144+
this.addMap(String.class, "varchar");
1145+
this.addMap(java.util.Date.class, "timestamp");
1146+
this.addMap(Timestamp.class, "timestamp");
1147+
this.addMap(Time.class, "time");
1148+
this.addMap(java.sql.Date.class, "date");
1149+
this.addMap(BigInteger.class, "numeric");
1150+
this.addMap(BigDecimal.class, "numeric");
1151+
this.addMap(ResultSet.class, "record");
1152+
1153+
this.addMap(byte[].class, "bytea");
11541154

11551155
// Need to check more specific types before those they are
11561156
// assignable to by widening reference conversions, so a

pljava-api/src/main/java/org/postgresql/pljava/sqlgen/TriggerNamer.java

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -27,45 +27,45 @@ public class TriggerNamer
2727
{
2828
static String synthesizeName( Trigger t)
2929
{
30-
StringBuilder bld = new StringBuilder();
31-
bld.append("trg_");
32-
bld.append((t.when() == Trigger.When.BEFORE) ? 'b' : 'a');
33-
bld.append((t.scope() == Trigger.Scope.ROW) ? 'r' : 's');
30+
StringBuilder bld = new StringBuilder();
31+
bld.append("trg_");
32+
bld.append((t.when() == Trigger.When.BEFORE) ? 'b' : 'a');
33+
bld.append((t.scope() == Trigger.Scope.ROW) ? 'r' : 's');
3434

35-
// Fixed order regardless of order in list.
36-
//
37-
boolean atDelete = false;
38-
boolean atInsert = false;
39-
boolean atUpdate = false;
40-
boolean atTruncate = false;
41-
for( Trigger.Event e : t.events() )
35+
// Fixed order regardless of order in list.
36+
//
37+
boolean atDelete = false;
38+
boolean atInsert = false;
39+
boolean atUpdate = false;
40+
boolean atTruncate = false;
41+
for( Trigger.Event e : t.events() )
42+
{
43+
switch( e )
4244
{
43-
switch( e )
44-
{
45-
case DELETE:
46-
atDelete = true;
47-
break;
48-
case INSERT:
49-
atInsert = true;
50-
break;
51-
case TRUNCATE:
52-
atTruncate = true;
53-
break;
54-
default:
55-
atUpdate = true;
56-
}
45+
case DELETE:
46+
atDelete = true;
47+
break;
48+
case INSERT:
49+
atInsert = true;
50+
break;
51+
case TRUNCATE:
52+
atTruncate = true;
53+
break;
54+
default:
55+
atUpdate = true;
5756
}
58-
bld.append('_');
59-
if(atDelete)
60-
bld.append('d');
61-
if(atInsert)
62-
bld.append('i');
63-
if(atUpdate)
64-
bld.append('u');
65-
if(atTruncate)
66-
bld.append('t');
67-
bld.append('_');
68-
bld.append(t.table());
69-
return bld.toString();
57+
}
58+
bld.append('_');
59+
if(atDelete)
60+
bld.append('d');
61+
if(atInsert)
62+
bld.append('i');
63+
if(atUpdate)
64+
bld.append('u');
65+
if(atTruncate)
66+
bld.append('t');
67+
bld.append('_');
68+
bld.append(t.table());
69+
return bld.toString();
7070
}
7171
}

0 commit comments

Comments
 (0)