Skip to content

Commit

Permalink
Why not simply use Play.version for Bytecode cache?
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Jan 19, 2011
1 parent d965fcf commit 58547d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions framework/src/play/classloading/BytecodeCache.java
Expand Up @@ -13,9 +13,6 @@
*/
public class BytecodeCache {

// Please update the cache version at each release
static String version = "1.1RC1";

/**
* Delete the bytecode
* @param name Cache name
Expand Down Expand Up @@ -116,7 +113,7 @@ static String hash(String text) {
}
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.reset();
messageDigest.update((BytecodeCache.version + "-" + Play.version + plugins.toString() + text).getBytes("utf-8"));
messageDigest.update((Play.version + plugins.toString() + text).getBytes("utf-8"));
byte[] digest = messageDigest.digest();
StringBuilder builder = new StringBuilder();
for (int i = 0; i < digest.length; ++i) {
Expand Down

0 comments on commit 58547d8

Please sign in to comment.