aboutsummaryrefslogtreecommitdiff
path: root/compatibility
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-06-15 23:47:20 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-06-15 23:51:21 -0400
commit96e471f914803f00dc646ebb05de24ede79227a4 (patch)
tree6bfcb212390cc915ce16ca45bb0154ca470c8264 /compatibility
parentc8e56f1d45a31d9653fb69829cfac832143526c6 (diff)
downloadcbt-96e471f914803f00dc646ebb05de24ede79227a4.tar.gz
cbt-96e471f914803f00dc646ebb05de24ede79227a4.tar.bz2
cbt-96e471f914803f00dc646ebb05de24ede79227a4.zip
minor fix to error messages
Diffstat (limited to 'compatibility')
-rw-r--r--compatibility/BuildInterface.java2
-rw-r--r--compatibility/Context.java8
-rw-r--r--compatibility/Dependency.java6
3 files changed, 8 insertions, 8 deletions
diff --git a/compatibility/BuildInterface.java b/compatibility/BuildInterface.java
index c374d5d..0428721 100644
--- a/compatibility/BuildInterface.java
+++ b/compatibility/BuildInterface.java
@@ -13,7 +13,7 @@ public interface BuildInterface extends Dependency{
// deprecated methods, which clients are still allowed to implement, but not required
public default BuildInterface finalBuild(){
- throw new IncompatibleCbtVersionException("You need to define method classLoader.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
}; // needed to propagage through build builds. Maybe we can get rid of this.
public abstract BuildInterface copy(Context context);
public abstract String scalaVersion();
diff --git a/compatibility/Context.java b/compatibility/Context.java
index f0fa42c..218fcd7 100644
--- a/compatibility/Context.java
+++ b/compatibility/Context.java
@@ -7,16 +7,16 @@ import java.util.concurrent.*;
public interface Context{
// recently added methods that needs default values for old versions to work
public default long cbtLastModified(){
- throw new IncompatibleCbtVersionException("You need to define method cbtLastModified.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default Map<Object,Object> persistentCache(){
- throw new IncompatibleCbtVersionException("You need to define method persistentCache.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default Map<Object,Object> transientCache(){
- throw new IncompatibleCbtVersionException("You need to define method transientCache.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default long start(){
- throw new IncompatibleCbtVersionException("You need to define method start.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default File workingDirectory(){
return projectDirectory();
diff --git a/compatibility/Dependency.java b/compatibility/Dependency.java
index d1d05b9..fda45cd 100644
--- a/compatibility/Dependency.java
+++ b/compatibility/Dependency.java
@@ -4,13 +4,13 @@ import java.io.*;
public interface Dependency{
// recently added methods that needs default values for old versions to work
public default String moduleKey(){
- throw new IncompatibleCbtVersionException("You need to define method moduleKey.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default long lastModified(){
- throw new IncompatibleCbtVersionException("You need to define method lastModified.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
public default ClassLoader classLoader(){
- throw new IncompatibleCbtVersionException("You need to define method classLoader.");
+ throw new IncompatibleCbtVersionException("You need to override this method.");
};
// methods that exist for longer which every CBT version in use should have by now, no default values needed