summaryrefslogtreecommitdiffstats
path: root/java/sca/samples
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/samples')
-rw-r--r--java/sca/samples/domain-management/src/test/java/services/ShoppingCartImpl.java2
-rw-r--r--java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/samples/domain-management/src/test/java/services/ShoppingCartImpl.java b/java/sca/samples/domain-management/src/test/java/services/ShoppingCartImpl.java
index ef63dfdfa1..30abfe77a0 100644
--- a/java/sca/samples/domain-management/src/test/java/services/ShoppingCartImpl.java
+++ b/java/sca/samples/domain-management/src/test/java/services/ShoppingCartImpl.java
@@ -36,7 +36,7 @@ public class ShoppingCartImpl implements Cart {
private Map<String, Item> cart;
@Init
- protected void init() {
+ public void init() {
cart = new HashMap<String, Item>();
}
diff --git a/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java b/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java
index 2e1b4a3ac0..9889921a96 100644
--- a/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java
+++ b/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java
@@ -36,7 +36,7 @@ public class ShoppingCartImpl implements Cart, Total {
private Map<String, Item> cart;
@Init
- protected void init() {
+ public void init() {
cart = new HashMap<String, Item>();
}