Skip to content

Commit

Permalink
harmonizes the usage and meaning of get/setTemplateClasspath with get…
Browse files Browse the repository at this point in the history
…/setSourceClasspath
  • Loading branch information
monperrus committed Sep 22, 2014
1 parent a05fe22 commit 35bb2f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/spoon/compiler/SpoonCompiler.java
Expand Up @@ -203,12 +203,12 @@ public interface SpoonCompiler extends FactoryAccessor {
*
* See {@link #setSourceClasspath} for the meaning of the returned string.
*/
String getTemplateClasspath();
String[] getTemplateClasspath();

/**
* Sets the classpath that is used to build the template sources.
*/
void setTemplateClasspath(String classpath);
void setTemplateClasspath(String... classpath);

/**
* Sets this compiler to optimize the model building process by ignoring
Expand Down
Expand Up @@ -69,7 +69,7 @@ public class JDTBasedSpoonCompiler implements SpoonCompiler {

public int javaCompliance = 7;

String templateClasspath = null;
private String[] templateClasspath = null;

File outputDirectory;

Expand Down Expand Up @@ -876,7 +876,7 @@ public boolean compileInputSources() throws Exception {
}

@Override
public String getTemplateClasspath() {
public String[] getTemplateClasspath() {
return templateClasspath;
}

Expand All @@ -891,7 +891,7 @@ public void setSourceClasspath(String... classpath) {
}

@Override
public void setTemplateClasspath(String classpath) {
public void setTemplateClasspath(String... classpath) {
this.templateClasspath = classpath;
}

Expand Down

0 comments on commit 35bb2f2

Please sign in to comment.