Skip to content

Commit 14805e9

Browse files
committed
Minor cleanup.
1 parent d859753 commit 14805e9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

metafix/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ task validateFixFile(type: JavaExec, group: 'Verification') {
9494
classpath = sourceSets.main.runtimeClasspath
9595
}
9696

97+
def mwe2File = 'src/main/java/org/metafacture/metafix/GenerateFix.mwe2'
9798
def xtextFile = 'src/main/java/org/metafacture/metafix/Fix.xtext'
9899

99100
task validateXtextLanguage(type: JavaExec, group: 'Verification') {
@@ -105,10 +106,10 @@ task validateXtextLanguage(type: JavaExec, group: 'Verification') {
105106
task generateXtextLanguage(type: JavaExec) {
106107
mainClass = 'org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher'
107108
classpath = configurations.mwe2
108-
inputs.file 'src/main/java/org/metafacture/metafix/GenerateFix.mwe2'
109+
inputs.file mwe2File
109110
inputs.file xtextFile
110111
outputs.dir 'src/main/xtext-gen'
111-
args += 'src/main/java/org/metafacture/metafix/GenerateFix.mwe2'
112+
args += mwe2File
112113
args += '-p'
113114
args += "rootPath=/${projectDir}/.."
114115
}

metafix/src/main/java/org/metafacture/metafix/Value.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,7 @@ public Value(final Map<String, Value> hash) {
9090
}
9191

9292
public Value(final String string) {
93-
type = string != null ? Type.String : null;
94-
95-
this.array = null;
96-
this.hash = null;
97-
this.string = string;
98-
this.path = null;
93+
this(string, null);
9994
}
10095

10196
public Value(final int integer) {

0 commit comments

Comments
 (0)