Skip to content

Commit

Permalink
Minor code improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Jul 19, 2015
1 parent 40f181d commit 662b196
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rapidoid-log/src/main/java/org/rapidoid/log/Log.java
Expand Up @@ -387,4 +387,4 @@ public static void error(String msg, String key1, Object value1, String key2, Ob
log(LEVEL_ERROR, msg, key1, value1, key2, value2, key3, value3, key4, value4, key5, value5, 5);
}

}
}
6 changes: 3 additions & 3 deletions rapidoid-pages/src/main/java/org/rapidoid/pages/Pages.java
Expand Up @@ -149,10 +149,10 @@ public static boolean isEmiting(HttpExchange x) {
}

public static Object dispatch(HttpExchange x, Object page) {
if (Pages.isEmiting(x)) {
return Pages.emit(x, page);
if (isEmiting(x)) {
return emit(x, page);
} else {
return Pages.serve(x, page);
return serve(x, page);
}
}

Expand Down
3 changes: 2 additions & 1 deletion rapidoid-plugins/pom.xml
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down
Expand Up @@ -38,7 +38,7 @@ public class CacheTest extends TestCommons {
* The default cache implementation is {@link NoCache}.
*/
@Test
public void remoteCacheAPIDemo() {
public void showCacheAPI() {

ICache<String, Object> cache = Cache.create("testcache", 1000, true);

Expand Down

0 comments on commit 662b196

Please sign in to comment.