Remove extraneous braces

pull/493/head
Alex Baker 9 years ago
parent 0072bb1c77
commit ca8b3ca872

@ -1,7 +1,9 @@
<component name="InspectionProjectProfileManager"> <component name="InspectionProjectProfileManager">
<profile version="1.0"> <profile version="1.0">
<option name="myName" value="Project Default" /> <option name="myName" value="Project Default" />
<inspection_tool class="ControlFlowStatementWithoutBraces" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="Convert2streamapi" enabled="false" level="WEAK WARNING" enabled_by_default="false" /> <inspection_tool class="Convert2streamapi" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="DoubleBraceInitialization" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="Guava" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="Guava" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false"> <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false">
<option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" /> <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" />
@ -13,6 +15,7 @@
<option name="processComments" value="true" /> <option name="processComments" value="true" />
</inspection_tool> </inspection_tool>
<inspection_tool class="StaticPseudoFunctionalStyleMethod" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="StaticPseudoFunctionalStyleMethod" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="SuspiciousIndentAfterControlStatement" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="TryFinallyCanBeTryWithResources" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="TryFinallyCanBeTryWithResources" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="TryWithIdenticalCatches" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="TryWithIdenticalCatches" enabled="false" level="WARNING" enabled_by_default="false" />
</profile> </profile>

@ -278,7 +278,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
Task task = viewHolder.task; Task task = viewHolder.task;
// name // name
final TextView nameView = viewHolder.nameView; { final TextView nameView = viewHolder.nameView;
String nameValue = task.getTitle(); String nameValue = task.getTitle();
long hiddenUntil = task.getHideUntil(); long hiddenUntil = task.getHideUntil();
@ -289,7 +289,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
nameValue = resources.getString(R.string.TAd_hiddenFormat, nameValue); nameValue = resources.getString(R.string.TAd_hiddenFormat, nameValue);
} }
nameView.setText(nameValue); nameView.setText(nameValue);
}
setupDueDateAndTags(viewHolder, task); setupDueDateAndTags(viewHolder, task);
@ -507,10 +506,9 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
}; };
} }
// Returns due date text width
private void setupDueDateAndTags(ViewHolder viewHolder, Task task) { private void setupDueDateAndTags(ViewHolder viewHolder, Task task) {
// due date / completion date // due date / completion date
final TextView dueDateView = viewHolder.dueDate; { final TextView dueDateView = viewHolder.dueDate;
if(!task.isCompleted() && task.hasDueDate()) { if(!task.isCompleted() && task.hasDueDate()) {
long dueDate = task.getDueDate(); long dueDate = task.getDueDate();
if(task.isOverdue()) { if(task.isOverdue()) {
@ -567,7 +565,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
} }
} }
} }
}
/** /**
* This method is called when user completes a task via check box or other * This method is called when user completes a task via check box or other

Loading…
Cancel
Save