This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="java-statements" deleted="false" description="Mockito doAnswer(answer).when(mock).call() construct" enabled="true" name="doAnswer">${a:importStatic(org.mockito.Mockito.doAnswer)}${b:import(org.mockito.stubbing.Answer, org.mockito.invocation.InvocationOnMock, java.lang.Throwable)}doAnswer( new Answer<${T}>() { | |
public ${T} answer( InvocationOnMock invocation ) throws Throwable { | |
${cursor} | |
return null; | |
} | |
} ).when( ${mock} ).${call};</template><template autoinsert="false" context="java-statements" deleted="false" description="Mockito doAnswer(answer).when(mock).call() construct that manipulates invocation argument" enabled="true" name="doAnswerOnArgument">${a:importStatic(org.mockito.Mockito.doAnswer)}${b:import(org.mockito.stubbing.Answer, org.mockito.invocation.InvocationOnMock, java.lang.Throwable)}doAnswer( new Answer<${T}>() { | |
public ${T} answer( InvocationOn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void setSelectedWorkOrder(int woNumber) { | |
if (!mWoNumbersList.contains(woNumber)) { | |
throw new NoSuchElementException("Work order number not in the list of work orders, need to add it"); | |
} | |
if (hasSelectedWorkOrder()) { | |
if (mSelectedWorkOrder.getWoNumber() == woNumber) { | |
return; | |
} else { | |
saveState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO(dimvar): Either INEXISTENT_PROPERTY shouldn't be here, or we should | |
// change DiagnosticGroups.setWarningLevel to not accidentally enable it. | |
static final DiagnosticGroup ALL_DIAGNOSTICS = new DiagnosticGroup( | |
DETERMINISTIC_TEST, | |
INEXISTENT_ENUM_ELEMENT, | |
INEXISTENT_PROPERTY, | |
POSSIBLE_INEXISTENT_PROPERTY, | |
INEXISTENT_PROPERTY_WITH_SUGGESTION, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isset($_POST['inreplyto'])) { //admin is setting date | |
$newinreplyto = $_POST['inreplyto']; | |
} else if (isset($_GET['irtid'])){ //for edits by regular users | |
$newinreplyto = $_GET['irtid']; | |
} else {$newinreplyto = 0;} |