Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8ad6963c
authored
Feb 05, 2016
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
function overrides existing getUsed. Rename helper function
1 parent
d0e110d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
code/moya-database/src/main/java/fi/codecrew/moya/model/PlaceSlot.java
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/map/AjaxMapView.java
code/moya-database/src/main/java/fi/codecrew/moya/model/PlaceSlot.java
View file @
8ad6963
...
@@ -51,7 +51,7 @@ public class PlaceSlot extends GenericEntity {
...
@@ -51,7 +51,7 @@ public class PlaceSlot extends GenericEntity {
this
.
created
=
Calendar
.
getInstance
().
getTime
();
this
.
created
=
Calendar
.
getInstance
().
getTime
();
}
}
public
boolean
isUsed
()
{
public
boolean
is
Slot
Used
()
{
return
used
!=
null
||
place
!=
null
;
return
used
!=
null
||
place
!=
null
;
}
}
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/map/AjaxMapView.java
View file @
8ad6963
...
@@ -136,7 +136,7 @@ public class AjaxMapView extends GenericCDIView {
...
@@ -136,7 +136,7 @@ public class AjaxMapView extends GenericCDIView {
Slotcounter
pm
=
prodmap
.
get
(
p
.
getProduct
());
Slotcounter
pm
=
prodmap
.
get
(
p
.
getProduct
());
pm
.
increment
();
pm
.
increment
();
logger
.
info
(
"got used {} for slot {} with place {}"
,
p
.
getUsed
(),
p
,
p
.
getPlace
());
logger
.
info
(
"got used {} for slot {} with place {}"
,
p
.
getUsed
(),
p
,
p
.
getPlace
());
if
(!
p
.
isUsed
())
{
if
(!
p
.
is
Slot
Used
())
{
pm
.
incrementUnused
();
pm
.
incrementUnused
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment