inference-based detection of architectural violations in mvc2

Post on 22-Jan-2018

1.761 Views

Category:

Software

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

•••

••

••

•••

••••

••

public static void completeTask() {long id = Long.parseLong(params.get("id"));Task task = Task.findById(id);

task.status = Task.COMPLETED;task.completedDate = new Date();task.save();

render();}

••

public static void completeTask() {long id = Long.parseLong(params.get("id"));Task task = Task.findById(id);

task.complete();

render();} public void complete() {

status = Task.COMPLETED;completedDate = new Date();save();

}

public static void completeTask() {long id = Long.parseLong(params.get("id"));Task task = Task.findById(id);

task.status = Task.COMPLETED;task.completedDate = new Date();task.save();

render();}

•••

••

••

••

••

••

••

•••

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

••

•••

••

public static void completeTask() {long id = Long.parseLong(params.get("id"));Task task = Task.findById(id);

task.status = Task.COMPLETED;task.completedDate = new Date();task.save();

render();}

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

top related