diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec
SINGLE
SINGLE
SINGLE
- message . removeHeader ( HttpHeaders . Names . CONTENT_LENGTH ) ;
message . removeHeader ( HttpHeaders . Names . TRANSFER_ENCODING ) ;
return message ;
} else { | Do not remove Content Length header even for a message with empty content HEAD requires that |
<nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi
@ override
public int available ( ) throws IOException {
+ if ( mClosed ) {
+ throw new IOException ( STRING0 ) ;
+ }
return ( int ) mAlluxioFileInputStream . remaining ( ) ;
} | Fix seek contract test |
<nb> public class PropertiesComponentTest extends ContextTestSupport {
}
public void testCamelProperties ( ) throws Exception {
+ context . getProperties ( ) . put ( STRING0 , STRING1 ) ;
+ context . getProperties ( ) . put ( STRING2 , STRING3 ) ;
+
context . start ( ) ;
assertEquals ( STRING4 , conte... | Camel properties now support property placeholder |
<nb> public class FileUtilsTest {
File tmpFile755 = mTestFolder . newFile ( STRING0 ) ;
tmpFile755 . setReadable ( true , false COMMENT ) ;
- tmpFile755 . setWritable ( true , true COMMENT ) ;
+ tmpFile755 . setWritable ( false , false COMMENT ) ;
tmpFile755 . setExecutable ( true , false COMMENT ) ;
+ tm... | SMALLFIX Fix a get local file mode test under different OS |
<nb> public abstract class ExtendableListView extends AbsListView {
break ;
case MotionEvent . ACTION_UP :
- default :
handled = onTouchUp ( event ) ;
break ;
+ SINGLE
+ SINGLE
+ SINGLE
+ default :
+ handled = true ;
+ break ;
}
notifyTouchMode ( ) ; | Fix bug that the default case on Touch event should not execute onTouchUp |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class AbstractExpandableItemsHandler < KeyType , ComponentType exte
if ( ! myEnabled ) return ;
if ( selected == null
+ || ! myComponent . isEnabled ( )
|| ! myComponent . isShowing ( )
|| ! myComponent . isFocusOwne... | don t display expanders on disabled components |
<nb> public class IndexFieldDataService extends AbstractIndexComponent {
}
public < IFD extends IndexFieldData > IFD getForField ( FieldMapper . Names fieldNames , FieldDataType type ) {
- IndexFieldData fieldData = loadedFieldData . get ( type . getType ( ) ) ;
+ IndexFieldData fieldData = loadedFieldData . ... | Fixed small bug |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
@ requiresversion ( STRING0 )
+ @ requiresauthentication
public class StatsTest extends BaseRestTest {
private static final String resourcePrefix = STRING1 ; | Stats resource now requires authentication |
<nb> public class InferenceVariable {
}
public boolean addBound ( PsiType classType , InferenceBound inferenceBound ) {
+ if ( inferenceBound == InferenceBound . EQ && classType instanceof PsiClassType && ( ( PsiClassType ) classType ) . resolve ( ) == myParameter ) {
+ return false ;
+ }
List < PsiType >... | ignore self eq bounds |
<nb> public class DeepLearningProstateTest extends TestUtil {
stall_till_cloudsize ( NUMBER0 ) ;
}
- SINGLE
- @ test public void run ( ) throws Exception { runFraction ( FLOAT0 ) ; }
+ SINGLE
+ @ test public void run ( ) throws Exception { runFraction ( FLOAT1 ) ; }
public void runFraction ( float fra... | Commented out load_balance true for now since it leaks different thread |
<nb> public class FileDataStorageManager {
return overriden ;
}
-
- public void saveNewFile ( OCFile newFile ) {
- String remoteParentPath = new File ( newFile . getRemotePath ( ) ) . getParent ( ) ;
- remoteParentPath = remoteParentPath . endsWith ( OCFile . PATH_SEPARATOR ) ?
- remoteParentPath : remo... | Remove deprecated method for save OCFiles |
<nb> public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase {
SINGLE
variables . add ( new Variable ( TYPE_PARAMETER_LIST_VARIABLE_NAME , expression , expression , false , true ) ) ;
+ SINGLE
+ templateImpl . setToShortenLongNames ( false ) ;
+
SINGLE
TemplateManager . getInstance ( proj... | Fixed some tests |
<nb> public class DTree extends Iced {
JCodeGen . toStaticVar ( sb , STRING0 , numTrees ( ) , STRING1 ) ;
JCodeGen . toStaticVar ( sb , STRING2 , numTrees ( ) * nclasses ( ) , STRING3 ) ;
JCodeGen . toStaticVar ( sb , STRING4 , NUMBER0 , STRING5 ) ;
- JCodeGen . toStaticVar ( sb , STRING6 , ValueArray . asFrame... | Reorder output DATA variable to match column names |
<nb> public class ResourceHandlerDescriptor extends AbstractDescriptor
}
}
} catch ( CoreException e ) {
- log . warn ( STRING0 + resource . getName ( ) + STRING1 , e ) ;
+ log . debug ( STRING0 + resource . getName ( ) + STRING1 , e ) ;
}
SINGLE
String fileExtension = resource . getFileExtension ( ) ; ... | Project handle fixes |
<nb> public class TerrainGrid extends TerrainQuad {
return cache . get ( tileCell ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public Vector3f toCellSpace ( Vector3f worldLocation ) {
+ return getTileCell ( worldLocation ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public Vector3f toWorldSpace ( Vecto... | added toCellSpace and toWorldSpace utility methods to TerrainGrid |
<nb> final class WindowState implements WindowManagerPolicy . WindowState {
final boolean isHwAccelerated = ( mAttrs . flags &
WindowManager . LayoutParams . FLAG_HARDWARE_ACCELERATED ) != NUMBER0 ;
final int format = isHwAccelerated ? PixelFormat . TRANSLUCENT : mAttrs . format ;
- if ( isHwAccelerated && mAtt... | Do not blend opaque windows |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ArrayMap < K , V > {
COMMENT
public ArrayMap ( boolean ordered , int capacity , Class < K > keyArrayType , Class < V > valueArrayType ) {
this . ordered = ordered ;
- keys = ( K [... | Fix bug in ArrayMap emulation |
<nb> public class AuditReaderFactory {
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public static AuditReader get ( Session session ) throws AuditException {
- SessionImplementor sessionImpl = ( SessionImplementor ) session ;
+ SessionImplementor sessionImpl ;
... | Fixed looking for session delegate |
<nb> public class KMeans2 extends ColumnsJob {
}
@ override protected Response redirect ( ) {
- String redirectName = KMeans2Progress . class . getSimpleName ( ) ;
- return Response . redirect ( this , redirectName , STRING0 , job_key , STRING1 , destination_key ) ;
+ return KMeans2Progress . redirect ( thi... | Fixed redirect code for KMeans2 |
<nb> public class MetaClass {
return DefaultGroovyMethods . getAt ( Arrays . asList ( ( Object [ ] ) object ) , property ) ;
}
if ( object instanceof Object ) {
- Field field = null ;
try {
- SINGLE
- field = object . getClass ( ) . getDeclaredField ( property ) ;
- return field . get ( object ) ;
- }... | added fallback to getAttribute if no property is found |
<nb> public class PhoneStatusBar extends BaseStatusBar {
public static final boolean DEBUG = BaseStatusBar . DEBUG ;
public static final boolean SPEW = DEBUG ;
public static final boolean DUMPTRUCK = true ; SINGLE
- public static final boolean DEBUG_GESTURES = true ;
+ public static final boolean DEBUG_GESTUR... | Putting the gesture debugging back in the box |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed spelling errors in javadoc |
<nb> public class VelocityAutoConfiguration {
protected void applyProperties ( VelocityEngineFactory factory ) {
factory . setResourceLoaderPath ( this . properties . getResourceLoaderPath ( ) ) ;
+ factory . setPreferFileSystemAccess ( this . properties . isPreferFileSystemAccess ( ) ) ;
Properties velocityP... | Add VelocityProperties preferFilesystemAccess |
<nb> public class DefaultGroovyMethods {
return toBigInteger ( self ) ;
} else if ( c == Character . class ) {
return toCharacter ( self ) ;
- } else if ( c == Boolean . class ) {
- return toBoolean ( self ) ;
} else if ( c == Double . class ) {
return toDouble ( self ) ;
} else if ( c == Float . class ... | removing string as Boolean string toBoolean |
<nb> public class TestStreamConsumer implements StreamConsumer {
public void waitForContain ( String content , int timeoutInSeconds ) throws InterruptedException {
long start = System . nanoTime ( ) ;
while ( true ) {
- if ( lines . contains ( content ) ) {
+ if ( output ( ) . contains ( content ) ) {
break... | correct contains logic on TestStreamConsumer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT | Remove unused import |
<nb> public class RecentsPanelView extends FrameLayout implements OnItemClickListener
| Intent . FLAG_ACTIVITY_TASK_ON_HOME
| Intent . FLAG_ACTIVITY_NEW_TASK ) ;
if ( DEBUG ) Log . v ( TAG , STRING0 + intent ) ;
- context . startActivityAsUser ( intent , opts ,
- new UserHandle ( UserHandle . USER_CURRENT ) )... | Prevent SecurityException from crashing Recents |
<nb> public class TelescopeLayout extends FrameLayout {
private final Context context ;
private final Bitmap screenshot ;
- private SaveScreenshotTask ( Bitmap screenshot ) {
+ SaveScreenshotTask ( Bitmap screenshot ) {
this . context = getContext ( ) ;
this . screenshot = screenshot ;
} | Remove the need for a synthetic accessor method |
<nb> public class QsTuner extends Fragment implements Callback {
else if ( spec . equals ( STRING0 ) ) return R . string . quick_settings_bluetooth_label ;
else if ( spec . equals ( STRING1 ) ) return R . string . quick_settings_inversion_label ;
else if ( spec . equals ( STRING2 ) ) return R . string . quick_set... | Don t use string that has been removed |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | BuildRootDescriptorImpl add copyright |
<nb> public class OSelectStatementTest {
STRING0 ) ;
checkWrongSyntax ( STRING1 ) ;
- checkWrongSyntax ( STRING2 ) ;
+ checkRightSyntax ( STRING2 ) ;
checkWrongSyntax ( STRING3 ) ;
checkWrongSyntax ( STRING4 ) ; | fixed test case on SELECT syntax |
<nb> public final class TSDB {
+ STRING0 + metric
+ STRING1 + timestamp ) ;
}
- final short flags = Const . FLAG_FLOAT | NUMBER0 ; SINGLE
+ final short flags = Const . FLAG_FLOAT | NUMBER0 ; SINGLE
return addPointInternal ( metric , timestamp ,
Bytes . fromLong ( Double . doubleToRawLongBits ( value ) ) ,... | Fix comment for double precision data points |
<nb> public class Runtime implements UnreportedStepExecutor {
}
private void runHooks ( List < HookDefinition > hooks , Reporter reporter , Set < Tag > tags , boolean isBefore ) {
- for ( HookDefinition hook : hooks ) {
- runHookIfTagsMatch ( hook , reporter , tags , isBefore ) ;
- }
+ if ( ! runtimeOptio... | adding check for dry run option back |
<nb> public abstract class DiscoveryResource < T >
}
@ get
- @ path ( STRING0 )
+ @ path ( STRING1 )
@ produces ( MediaType . APPLICATION_JSON )
public Response getAny ( @ pathparam ( STRING2 ) String name )
{ | Changed the path for getany |
<nb> public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements
@ override
public void hyperlinkUpdate ( HyperlinkEvent e ) {
- if ( myBalloon != null ) {
+ if ( myBalloon != null && e . getEventType ( ) == HyperlinkEvent . EventType . ACTIVATED ) {
myBalloon . hide ( ) ;
}
if ( myL... | Hide balloon with a link only when the link is clicked not on any event |
<nb> public class MUCPersistenceManager {
pstmt = con . prepareStatement ( LOAD_HISTORY ) ;
SINGLE
int reloadLimitDays = JiveGlobals . getIntProperty ( MUC_HISTORY_RELOAD_LIMIT , NUMBER0 ) ;
- Log . warn ( STRING0 + reloadLimitDays + STRING1 ) ;
long from = System . currentTimeMillis ( ) - ( NUMBER1 * reloadL... | Remove extraneous logging |
<nb> public class JettyRunMojo extends AbstractJettyMojo
for ( Iterator < Artifact > iter = projectArtifacts . iterator ( ) ; iter . hasNext ( ) ; )
{
Artifact artifact = ( Artifact ) iter . next ( ) ;
- if ( artifact . getType ( ) . equals ( STRING0 ) )
+ if ( artifact . getType ( ) . equals ( STRING0 ) || a... | Maven Jetty Plugin ignores ZIP overlays |
<nb> public class ClusteredSingleSignOnTestCase {
@ arquillianresource ( LogoutServlet . class ) @ operateondeployment ( DEPLOYMENT_1 ) URL baseURL1 ,
@ arquillianresource ( LogoutServlet . class ) @ operateondeployment ( DEPLOYMENT_2 ) URL baseURL2 ) throws Exception {
log . info ( STRING0 ) ;
- SSOBaseCase . ... | Fixed URL in noauth sso test |
<nb> public class PluginRealm extends AuthorizingRealm implements RealmLifecycle
return token != null ? token . getPrincipal ( ) : null ;
}
-
@ override
public boolean supports ( AuthenticationToken token )
{ | Fix code style double newlines |
<nb> public class GraphStorage implements Graph , Storable < GraphStorage > {
if ( base >= nodeCount )
throw new RuntimeException ( STRING0 + str ) ;
}
+ SINGLE
+ getEdges ( nodeCount - NUMBER0 ) . toString ( ) ;
}
removedNodes = null ; | added one more health check |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MethodSorterTest {
@ test
public void testJvmMethodSorter ( ) {
- Method [ ] fromJvm = DummySortJvm . class . getDeclaredMethods ( ) ;
- Method [ ] sorted = Me... | Used assertArrayEquals to avoid converting an array to a list |
<nb> public class VersionedChecksummedBytes implements Serializable {
this . bytes = bytes ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public String toString ( ) {
SINGLE | Add javadoc comment for VersionedChecksummedBytes toString |
<nb> public final class GtasksSyncService {
}
SINGLE
- SINGLE
+ SINGLE
+ SINGLE
if ( newlyCreated &&
- ( ! values . containsKey ( Task . TITLE . name ) || TextUtils . isEmpty ( task . getValue ( Task . TITLE ) ) ) ) {
+ ( ! values . containsKey ( Task . TITLE . name ) || TextUtils . isEmpty ( task . g... | Don t create new deleted tasks on gtasks |
<nb> public class AnimationDrawable extends DrawableContainer implements Runnable , An
final boolean changed = super . setVisible ( visible , restart ) ;
if ( visible ) {
if ( restart || changed ) {
- setFrame ( restart ? NUMBER0 : mCurFrame , true , mAnimating ) ;
+ boolean startFromZero = restart || mCurFra... | Fix crash in AnimationDrawable |
<nb> public class OpenHelperManager {
constructor = openHelperClass . getConstructor ( Context . class ) ;
} catch ( Exception e ) {
throw new IllegalStateException (
- STRING0
+ STRING1
+ openHelperClass , e ) ;
}
try { | Improved exception message |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- public class WebElementCreator {
+ class WebElementCreator {
private ArrayList < WebElement > webElements ;
private Sleeper sleeper ; | Removed public from WebElementCreator |
<nb> public abstract class AbstractResource implements Resource {
COMMENT
COMMENT
COMMENT
- public String getFilename ( ) throws IllegalStateException {
+ public String getFilename ( ) {
return null ;
}
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface InputS... | moved getInputStream not null requirement to InputStreamSource itself removed misleading throws IllegalStateException declaration |
<nb> public class SchemaPrefixReference extends PsiReferenceBase < XmlElement > implemen
COMMENT
COMMENT
public SchemaPrefixReference ( XmlElement element , TextRange range , String name , @ nullable TagNameReference tagNameReference ) {
- super ( element , range , true ) ;
+ super ( element , range , false )... | make it hard |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
catch ( Exception e )
{
SINGLE
- logger . warn ( e . getMessage ( ) , e ) ;
+ logger . warn ( STRING0 + mbeanName , e ) ;
}
} | Don t stutter exception message when failing to unregister CFS mbean |
<nb> final class AutoExpandReplicas {
SINGLE
private static final String ALL_NODES_VALUE = STRING0 ;
public static final Setting < AutoExpandReplicas > SETTING = new Setting < > ( IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , STRING1 , ( value ) - > {
- final int min ;
- final int max ;
+ SINGLE
+ int mi... | Fix compilation issue with final assignment in lambda on windows jdk |
<nb> public class DefaultServlet extends HttpServlet {
private String findWelcomeServlet ( final String path ) {
for ( String i : welcomePages ) {
- final ServletPathMatch handler = deployment . getServletPaths ( ) . getServletHandlerByExactPath ( path + i ) ;
- if ( handler != null ) {
+ final ServletPathM... | Don t require an exact match for the welcome file list just make sure |
<nb> public Iter iterate ( )
return rest ;
}
- public Iter iter ( )
- {
- return this ;
- }
}
<nb> import NAMESPACE ;
COMMENT
COMMENT
- public class RBTree {
+ public class RBTree implements Iterable {
public final Comparator comp ;
public final Node tree ;
<nb> static public Iter it... | made RT Iter support Iterables removed iter from Cons made RBTree Iterable |
<nb> public class RESTApplication extends Application {
httpService . registerServlet ( REST_SERVLET_ALIAS ,
atmosphereServlet , getJerseyServletParams ( ) , createHttpContext ( ) ) ;
- logger . info ( STRING0 ) ;
+ logger . info ( STRING1 , REST_SERVLET_ALIAS ) ;
if ( discoveryService != null ) {
disco... | Dynamic start logger message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAM... | Fixed unused imports |
<nb> public class MapperQueryParser extends QueryParser {
@ override
protected Query getWildcardQuery ( String field , String termStr ) throws ParseException {
- if ( STRING0 . equals ( field ) && termStr . equals ( STRING0 ) ) {
- return newMatchAllDocsQuery ( ) ;
+ if ( termStr . equals ( STRING0 ) ) {
... | convert to optimized match all query also when executing query |
<nb> public class DemoConnectorTest {
parameters . put ( STRING0 , STRING1 ) ;
parameters . put ( STRING2 , STRING3 ) ;
- cycleService . executeParameterizedAction ( STRING1 , file1 . getNodeId ( ) , CopyArtifactAction . class . getName ( ) , parameters ) ;
+ cycleService . executeParameterizedAction ( STRING... | fixed test case according to new action names |
<nb> public class StatsActivity extends WPActionBarActivity {
new RestRequest . ErrorListener ( ) {
@ override
public void onErrorResponse ( VolleyError error ) {
- if ( isFinishing ( ) || isDestroyed ( ) )
+ if ( isFinishing ( ) )
return ;
if ( mSignInDialog != null && mSignInDialog . isShowing ( ) ) {
... | Remove the call to isDestroyed that is not needed |
<nb> public class MessageList
private void checkMail ( Account account , String folderName )
{
mController . synchronizeMailbox ( account , folderName , mAdapter . mListener , null ) ;
- sendMail ( account ) ;
- }
-
- private void sendMail ( Account account )
- {
mController . sendPendingMessages ( ac... | replace a trivial one line method that was called twice with its body |
<nb>
- COMMENT
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation , either version NUMBER0 of
- the License , or ( at your option ) any later version .
- This program is distributed in the hope that it will be useful ,
- but WITHOUT ANY WARR... | Added License to TravelOption |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShareUtils {
intent . putExtra ( STRING0 , startTime ) ;
intent . putExtra ( STRING1 , endTime ) ;
- try {
- context . startActivity ( intent ) ;
- } catch ( ActivityNotFo... | Switch cal event creation to tryStartActivity |
<nb> public class TachyonMaster {
mMasterAddress = new InetSocketAddress ( NetworkUtils . getFqdnHost ( address ) , mPort ) ;
String journalFolder = MasterConf . get ( ) . JOURNAL_FOLDER ;
Preconditions . checkState ( isFormatted ( journalFolder , MasterConf . get ( ) . FORMAT_FILE_PREFIX ) ,
- STRING0 ) ;
+ ... | improve master logging |
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT | Move JoinedFeatureConverter to impl directory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PersonSessionBean {
@ inject
Person person ;
- Set < String > set = new HashSet < > ( ) ;
-
private Cluster c... | Removing some redundant code |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ checkreturnvalue
@ gwtcompatible
@ bet... | Add CheckReturnValue to DiscreteDomain |
<nb> public class SelectionModelImpl implements SelectionModel , PrioritizedDocumentLi
SINGLE
SINGLE
- return marker != null && marker . isValid ( ) ;
+ return marker != null && marker . isValid ( ) && marker . getEndOffset ( ) > marker . getStartOffset ( ) ;
}
public void setSelection ( int startOffset... | Added explicit check for situation when selection range marker is empty start offset is equal to end offset |
<nb> public class ReactToolbar extends Toolbar {
. setOldController ( holder . getController ( ) )
. build ( ) ;
holder . setController ( controller ) ;
+ holder . getTopLevelDrawable ( ) . setVisible ( true , true ) ;
} else {
controllerListener . setDrawable ( getDrawableByName ( uri ) ) ;
} | Fix setting android toolbar images after null them |
<nb> public class SessionManager extends BasicModule {
SINGLE
String domain = session . getAddress ( ) . getDomain ( ) ;
List < ConnectionMultiplexerSession > sessions = connnectionManagerSessions . get ( domain ) ;
- sessions . remove ( session ) ;
- if ( sessions . isEmpty ( ) ) {
- connnectionManagerSess... | Fix NPE when closing a CM connection |
<nb> public class WebView extends AbsoluteLayout
mZoomButtonsController = new ZoomButtonsController ( this ) ;
mZoomButtonsController . setOnZoomListener ( mZoomListener ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ View controls = mZoomButtonsController . getZoomControls ( ) ;
+ ViewGroup . LayoutParams params = co... | Move the zoom buttons to the bottom right for the browser |
<nb> public class JavaCodeStyleManagerImpl extends JavaCodeStyleManager {
return new NamesByExprInfo ( null , constantValueToConstantName ( names ) ) ;
}
}
+ } else if ( expr instanceof PsiParenthesizedExpression ) {
+ return suggestVariableNameByExpressionOnly ( ( ( PsiParenthesizedExpression ) expr ) . getE... | add more name suggestions for type casts and expressions |
<nb> public abstract class JsonParserBase {
COMMENT
COMMENT
protected Object newObjectInstance ( Class targetType ) {
- if ( targetType == null ) {
- return new HashMap ( ) ;
- }
+ if ( targetType == null ||
+ targetType == Map . class ||
+ targetType == Object . class ) {
- if ( targetType == Map... | Allow Object class for creationg maps |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ @ deprecated
public class DeleteByQueryFailedEngineException extends EngineException {
public DeleteByQueryFailedEngineException ( ShardId shardId , Engine . DeleteByQuery deleteByQuery , Throwable cause ) { | add another delete by query deprecation |
<nb> public class InitializationUtils {
if ( statement instanceof PsiBreakStatement ||
statement instanceof PsiContinueStatement ||
statement instanceof PsiAssertStatement ||
- statement instanceof PsiEmptyStatement ) {
+ statement instanceof PsiEmptyStatement ||
+ statement instanceof PsiSwitchLabelStateme... | teach InitializationUtils about instanceof expressions |
<nb> public class WikiIndexer {
float lat_sec = zeroParseFloat ( readProperty ( STRING0 , h , e ) ) ;
float lon_sec = zeroParseFloat ( readProperty ( STRING1 , h , e ) ) ;
lat = ( ( STRING2 . equals ( lat_dir ) ) ? - NUMBER0 : NUMBER0 ) * ( lat_deg + ( lat_min + lat_sec / NUMBER1 ) / NUMBER1 ) ;
- lon = ( ( STR... | Fix Wiki Indexer |
<nb> public class PdeEditor extends Panel implements PdeEnvironment {
public void doClose ( ) {
- if ( playing ) doStop ( ) ;
+ if ( playing ) {
+ SINGLE
+ doStop ( ) ;
+ }
+
SINGLE
try {
SINGLE
( ( KjcEngine ) ( runner . engine ) ) . close ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
} catch ( Ex... | fixed nasty OutOfMemoryError bug |
<nb> class InPlaceColSwap extends Function {
SINGLE
ValueArray ary = new ValueArray ( result . _key , oldAry . numRows ( ) , off , cols ) ;
DKV . put ( result . _key , ary ) ;
- DKV . write_barrier ( ) ;
ColSwapTask task = new ColSwapTask ( result . _key , oldKey , newKey , oldCol , newCol ) ;
task . invoke... | Move the write barrier in ColSwap |
<nb> public class HeatmiserGenericBindingProvider extends AbstractGenericBindingProvi
config = null ;
}
break ;
+ case HOLIDAYSET :
+ if ( config . itemType != SwitchItem . class && config . itemType != NumberItem . class ) {
+ logger . error ( STRING0 , config . function ) ;
+ config = null ;
+ }
+ b... | Implement holidatSet command |
<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity {
TextView bagdeTextView = ( TextView ) v . findViewById ( R . id . menu_row_badge ) ;
- if ( position == NUMBER0 && WordPress . currentBlog != null ) {
+ int commentRow = ( mIsDotComBlog ) ? NUMBER0 : NUMBER1 ;
+ if ( position ... | Added a condition to get the correct comments row |
<nb> public class AtmosphereResourceImpl implements AtmosphereResource {
}
} else {
logger . debug ( STRING0 , this ) ;
+ return this ;
}
} catch ( Throwable t ) {
logger . trace ( STRING1 , this , t ) ; | Don t call the listener under invalid condition |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractSockJsIntegrationTests {
this . sockJsClient . start ( ) ;
}
+ SINGLE
+ @ ignore
@ test
public... | Add Ignored temporarily to Jetty SockJS tests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public final class UrlImageViewHelper {
private static void clog ( String format , Object . . . args ) {
<nb> public final class UrlImageViewHelper {
return ;
}
mMetrics = new DisplayMetrics ( ) ;... | fixed prepareResources so that it doesn t require an activity context |
<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe
throw t ;
}
- for ( AtmosphereInterceptor arc : c ) {
- arc . postInspect ( resource ) ;
+ for ( int i = c . size ( ) - NUMBER0 ; i > - NUMBER0 ; i -- ) {
+ c . get ( i ) . postInspect ( resource ) ;
}
if ( track... | Call the postInvoke the reverse order |
<nb> public final class JsDocInfoParser {
}
next ( ) ;
}
+ if ( union . getChildCount ( ) == NUMBER0 ) {
+ Node firstChild = union . getFirstChild ( ) ;
+ union . removeChild ( firstChild ) ;
+ return firstChild ;
+ }
return union ;
}
<nb> public class NewTypeInferenceTest extends CompilerTypeTe... | If a parenthesized type annotation contains a single type don t parse it as a union |
<nb> public class WebView extends AbsoluteLayout
}
private void drawExtras ( Canvas canvas , int extras ) {
- if ( mNativeClass == NUMBER0 ) return ;
+ SINGLE
+ SINGLE
SINGLE
SINGLE
if ( nativeEvaluateLayersAnimations ( ) ) {
<nb> public class WebView extends AbsoluteLayout
if ( mDrawHistory ) {
... | don t draw layers with history |
<nb> import NAMESPACE ;
private void growOrShrink ( boolean grow ) {
AbsoluteLayout . LayoutParams lp = ( AbsoluteLayout . LayoutParams ) getLayoutParams ( ) ;
if ( grow ) {
- Log . i ( STRING0 , STRING1 ) ;
lp . x -= mRingInset ;
lp . y -= mRingInset ;
lp . width += NUMBER0 * mRingInset ;
<nb> import N... | Remove debug log messages |
<nb> public class InformationSchemaQueryTest extends SQLTransportIntegrationTest {
STRING0 +
STRING1 ) ;
- client ( ) . admin ( ) . indices ( ) . close ( new CloseIndexRequest ( STRING2 ) ) ;
- ensureGreen ( ) ;
+ ensureYellow ( ) ;
+ client ( ) . admin ( ) . indices ( ) . close ( new CloseIndexRequest ( ... | fixed flaky InformationSchemaQueryTest |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
public class LanguageDocumentation extends LanguageExtension < DocumentationProvider > {
public static final LanguageDocumentation INSTANCE = new LanguageDocumentation ( ) ;
<nb> public class LanguageDocumentation ex... | revert previous changes fix CCE in CssDocumentationProvider |
<nb> public class NiftyDialogBuilder extends Dialog implements DialogInterface {
- private Effectstype type ;
+ private Effectstype type = null ;
private LinearLayout mLinearLayoutView ;
<nb> public class NiftyDialogBuilder extends Dialog implements DialogInterface {
public void onShow ( DialogInter... | fix effect type null |
<nb> public class CameraLauncher extends Plugin implements MediaScannerConnectionClie
}
SINGLE
- this . success ( new PluginResult ( PluginResult . Status . OK , uri . toString ( ) ) , this . callbackId ) ;
+ if ( saveToPhotoAlbum ) {
+ this . success ( new PluginResult ( PluginResult . Status . OK , uri . ... | Cache bust returned Image URI if saveToPhotoAlbum is false |
<nb> public class ContainerProvider {
COMMENT
public static ServerContainer getServerContainer ( ) {
SINGLE
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
ServerContainer result = null ;
try {
Class < ? > clazz = Class . forName ( CONTAINER_PROVIDER_IMPL ) ; | Tweak the comments |
<nb> class ScrollbarHelper {
final int maxPosition = Math . max ( lm . getPosition ( startChild ) , lm . getPosition ( endChild ) ) ;
final int itemsBefore = reverseLayout
? Math . max ( NUMBER0 , state . getItemCount ( ) - maxPosition - NUMBER1 )
- : Math . max ( NUMBER0 , minPosition - NUMBER1 ) ;
+ : Math ... | Fix calculation for items before the start position |
<nb> abstract class AbstractCacheProxyBase < K , V >
}
loadAllTasks . clear ( ) ;
- SINGLE
- cacheService . sendInvalidationEvent ( nameWithPrefix , null , AbstractCacheRecordStore . SOURCE_NOT_AVAILABLE ) ;
-
closeListeners ( ) ;
if ( caughtException != null ) {
throw new CacheException ( STRING0 , c... | Restores JCache near cache invalidation events behavior |
<nb> import NAMESPACE ;
COMMENT
public class Sequencer < E extends Enum < E > > {
- private final Class < E > messagesClass ;
private final EnumSet < E > sentMessages ;
private final Multimap < E , Thread > reservedMessages ;
public Sequencer ( Class < E > messageClass ) {
- this . messagesClass = mes... | Removed an unused field on Sequencer |
<nb> import NAMESPACE ;
COMMENT
public final class Features {
- private static final List < String > SUPPORTED = Lists . newArrayList ( STRING0 , STRING1 ) ;
+ private static final List < String > SUPPORTED = Lists . newArrayList ( STRING0 , STRING1 , STRING2 ) ;
private Features ( ) { | TEST declare support for groovy scripting feature in the Java REST tests runner |
<nb> package NAMESPACE ;
import NAMESPACE ;
- @ deprecated
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ suppresswarnings ( STRING0 )
public interface LoggingManagerInternal extends org . gradle . internal . logging . LoggingManagerInternal , StandardOutputCapture {
+ @ deprecated
LoggingManagerIn... | Soften LoggingManagerInternal deprecation |
<nb> public class ComponentTypeModelRuleExtractor extends TypeModelRuleExtractor < Comp
@ override
protected < R , S > ExtractedModelRule createRegistration ( MethodRuleDefinition < R , S > ruleDefinition , ModelType < ? extends ComponentSpec > type , TypeBuilderInternal < ComponentSpec > builder ) {
- Immutabl... | Tweaked type declaration |
<nb> public class SQLServer2005Dialect extends SQLServerDialect {
@ override
public int convertToFirstRowValue ( int zeroBasedFirstResult ) {
- return zeroBasedFirstResult + NUMBER0 ;
+ SINGLE
+ return zeroBasedFirstResult + NUMBER0 ;
}
@ override
public String getLimitString ( String query , int of... | Added some comments |
<nb> import NAMESPACE ;
@ executionstrategy ( contextType = TestActionContext . class , name = { STRING0 } )
public class StandaloneTestStrategy extends TestStrategy {
SINGLE
- SINGLE
private final Path workspace ; | Remove unnecessary TODO as dmarting recently implemented timeout support |
<nb> final class Log4JLogger extends Logger {
COMMENT
@ override
public void error ( String message , Throwable th ) {
- error ( message , th ) ;
+ LOGGER . error ( message , th ) ;
}
} | Removed an infinite recursive loop in Log4JLogger error String Throwable |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultScriptPluginFactory implements ScriptPluginFac... | Provide a temporary workaround to the different way that buildscript blocks delegate in build scripts |
<nb> public final class BridgeWindowSession implements IWindowSession {
SINGLE
return null ;
}
+
+ public IBinder prepareDrag ( IWindow arg0 , boolean arg1 , int arg2 , int arg3 , Surface arg4 )
+ throws RemoteException {
+ SINGLE
+ return null ;
+ }
} | Fix build by adding missing IWindowSession implementation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.