diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class OperationSetBasicTelephonySipImpl
try
{
sipURI . setHeader ( ReplacesHeader . NAME ,
- URLEncoder . encode ( replacesHeader . encodeBody ( ) , STRING0 ) ) ;
+ URLEncoder . encode ( replacesHeader . encode ( ) , STRING0 ) ) ;
}
catch ( Exception ex )
{ | Replaces encodeBody to encode since it has changed in latest JAIN SIP jar s |
<nb> public class MySQLTable extends MySQLTableBase
protected MySQLPartition fetchObject ( @ notnull JDBCSession session , @ notnull MySQLTable table , @ notnull ResultSet dbResult ) throws SQLException , DBException
{
String partitionName = JDBCUtils . safeGetString ( dbResult , MySQLConstants . COL_PARTITION_NA... | MySQL partition read fix |
<nb> public class InformationDisclosureSuspiciousComments extends PluginPassiveScanne
}
}
if ( todoComments . length ( ) > NUMBER0 ) {
- this . raiseAlert ( msg , todoComments . toString ( ) ) ;
+ this . raiseAlert ( msg , id , todoComments . toString ( ) ) ;
}
}
}
- private void raiseAlert ( HttpMe... | Changed the InformationDisclosureSuspiciousComments passive scanner to raise the alert with the id of the HistoryReference |
<nb> public class SpriteHelper
STRING0 +
STRING0 +
STRING1 +
- STRING2 +
+ STRING3 +
STRING4 +
- STRING5 +
+ STRING6 +
STRING7 +
STRING8 +
STRING0 ) ; | Fix sprite map issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public abstract class XmlSuppressableInspectionTool extends LocalInspectionTool {
+ public abstract class XmlSuppressableInspectionTool extends LocalInspectionTool implements BatchSuppressableTool {
@ nonnls static final String ALL = STRING0 ; ... | restore xml suppressions until EL etc would provide its own suppressor |
<nb> public class ISO8601Utils
if ( i < endIndex ) {
digit = Character . digit ( value . charAt ( i ++ ) , NUMBER0 ) ;
if ( digit < NUMBER1 ) {
- throw new NumberFormatException ( STRING0 + value ) ;
+ throw new NumberFormatException ( STRING0 + value . substring ( beginIndex , endIndex ) ) ;
}
result = -... | Report the offending substring when number parsing fails |
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data
Object selectedValue = pathToSelect [ i ] ;
panel . setSelectedValue ( selectedValue ) ;
if ( i < pathToSelect . length - NUMBER0 ) {
- panel = ( FinderRecursivePanel ) panel . getSecondComponent ( ) ;
- assert panel != n... | FinderRecursivePanel updateSelectedPath add diagnostics |
<nb> public class MainApp extends Application {
private static final String AUTH_ON = STRING0 ;
+ @ suppresswarnings ( STRING1 )
+ private static final String POLICY_SINGLE_SESSION_PER_ACCOUNT = STRING2 ;
+ @ suppresswarnings ( STRING1 )
+ private static final String POLICY_ALWAYS_NEW_CLIENT = STRING3 ;
... | Revert Enable session support for all authentication methods in the app |
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
private void addFragment ( ) {
if ( mIsInSearchMode ) {
+ addBrowserFragment ( ) ;
addSearchFragment ( ) ;
} else {
addBrowserFragment ( ) ;
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements T... | Fixing lifecycle issue where Search rotate would make a new copy every time |
<nb> public class MongoDBRiverModule extends AbstractModule {
@ override protected void configure ( ) {
bind ( River . class ) . to ( MongoDBRiver . class ) . asEagerSingleton ( ) ;
}
- }
+ } | Rename MongodbRiverModule java to MongoDBRiverModule java |
<nb> public class CucumberMain {
}
public static void main ( String [ ] args ) throws IOException {
- int exitStatus = run ( args , Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
+ int exitStatus ;
+ try {
+ exitStatus = run ( args , Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
... | invoke System exit even if exception is thrown to avoid hanging |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
@ runwith ( DirectoryRunner . class )
public class TestSourceFiles {
public static File getBeforeDirectory ( ) {
+ RunTestsViaDelombok . printErrors ( true ) ;
return new File ( STRING0 ) ;
} | Failing tests now do a full print of the actual and expected delombok output |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
COMMENT | remove unused import |
<nb> public final class SSL {
public static final int SSL_AIDX_RSA = NUMBER0 ;
public static final int SSL_AIDX_DSA = NUMBER1 ;
- public static final int SSL_AIDX_MAX = NUMBER2 ;
+ public static final int SSL_AIDX_ECC = NUMBER3 ;
+ public static final int SSL_AIDX_MAX = NUMBER4 ;
COMMENT
COMMENT
COMME... | Align constants with tc native trunk |
<nb> public class RouterActor extends ModuleActor {
conversationStates . addOrUpdateItem ( state ) ;
}
+ SINGLE
+ markAsReadIfNeeded ( peer ) ;
+
return Promise . success ( null ) ;
}
<nb> public class RouterActor extends ModuleActor {
private void markAsReadIfNeeded ( Peer peer ) {
if ( isConve... | Fixing message reading on history loading and on incorrect zero counter |
<nb> public class MainActivity extends ActionBarActivity implements ActionMode . Callba
} , NUMBER0 ) ;
}
} ) ;
+
+ ultimateRecyclerView . setDefaultSwipeToRefreshColorScheme ( getResources ( ) . getColor ( android . R . color . holo_blue_bright ) ,
+ getResources ( ) . getColor ( android . R . color . holo... | update demo for setDefaultSwipeToRefreshColorScheme |
<nb> public abstract class MRTask2 < T extends MRTask2 < T > > extends DTask implements Clo
_res . _profile = _profile ; SINGLE
copyOver ( _res ) ; SINGLE
}
- System . out . println ( STRING0 + H2O . SELF + STRING1 + _noutputs ) ;
closeLocal ( ) ;
- if ( ns == ( NUMBER0 < < H2O . CLOUD . size ( ) ) - NUMBER... | Remove debug prints |
<nb> import NAMESPACE ;
COMMENT
public class CyrusUser implements Serializable {
+ public CyrusUser ( ) {
+ }
+
public CyrusUser ( String userId , String password ) {
_userId = userId ;
_password = password ;
<nb> import NAMESPACE ;
COMMENT
public class CyrusVirtual implements Serializable {
... | Missing empty constructor |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- class RuntimeTestWalker {
+ class RuntimeTestWlalker {
private static final Field residualTestField ; | Fix javadoc typo |
<nb> public class ShibbolethPersonAttributeDao implements IPersonAttributeDao {
COMMENT
COMMENT
@ postconstruct
- public void init ( ) throws ComponentInitializationException {
+ public void init ( ) {
if ( attributeResolver instanceof InitializableComponent && ! ( ( InitializableComponent ) attributeResolv... | wrap checked exception rather than throw |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ; ;
+ import static NAMESPACE ;
import NAMESPACE ; | Fixing a compile error by removing a superflouous semicolon |
<nb> public class GitInteractiveRebaseEditorHandler implements Closeable , GitRebaseEd
isSuccess . set ( true ) ;
return ;
}
- else {
- isSuccess . set ( false ) ;
- }
}
else {
setRebaseEditorShown ( ) ;
<nb> public class GitInteractiveRebaseEditorHandler implements Closeable , GitRebaseEd
}
els... | remove pointless statements |
<nb> public class StartupService {
}
AstridPreferences . setCurrentVersion ( version ) ;
}
- if ( latestSetVersion == NUMBER0 ) {
- onFirstTime ( ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
upgradeService . performSecondaryUpgrade ( context ) ; | Killed startup tasks |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AnnotationTest extends Test... | Use allOf instead of both to avoid type parameter |
<nb> public class EduStepicUpdater {
StepicUpdateSettings . getInstance ( ) . setLastTimeChecked ( System . currentTimeMillis ( ) ) ;
courses . removeAll ( cachedCourses ) ;
- if ( ! courses . isEmpty ( ) ) {
+ if ( ! courses . isEmpty ( ) && ! cachedCourses . isEmpty ( ) ) {
final String message ;
final ... | remove notification about courses on application setup |
<nb> public class Resources {
private static final LongSparseArray < ColorStateList > sPreloadedColorStateLists
= new LongSparseArray < ColorStateList > ( ) ;
- private static Resources mSystem = null ;
+ SINGLE
+ static Resources mSystem = null ;
+
private static boolean sPreloaded ;
private static i... | Fix broken build in BridgeResources |
<nb> public class ONetworkProtocolBinary extends ONetworkProtocol {
for ( Entry < ORecordId , ORecord < ? > > entry : tx . getCreatedRecords ( ) . entrySet ( ) ) {
channel . writeRID ( entry . getKey ( ) ) ;
channel . writeRID ( entry . getValue ( ) . getIdentity ( ) ) ;
+
+ SINGLE
+ if ( entry . getValue (... | Fixed bug reported in ML by Steven about the version number on new records |
<nb> public class MethodCall implements Implementation . Composable {
COMMENT
private final MethodDescription instrumentedMethod ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected ForItemFromArrayMethodParameter ( int index , MethodDescription instrumentedMethod ) {
this . ind... | Fix checkstyle error |
<nb> class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
. setImageProvider ( new NullableFunction < DnDActionInfo , DnDImage > ( ) {
@ override
public DnDImage fun ( DnDActionInfo info ) {
- return new DnDImage ( IconUtil . toImage ( scaleIcon ( getGutterRenderer ( info . getPoint ... | center dragged breakpoint image |
<nb> public class PhoneStatusBar extends StatusBar {
}
void updateExpandedSize ( ) {
- if ( mExpandedDialog != null && mExpandedParams != null ) {
+ if ( mExpandedDialog != null && mExpandedParams != null && mDisplaySize != null ) {
mExpandedParams . width = mDisplaySize . x ;
mExpandedParams . height = g... | Fix another NPE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class LocalFirehoseFactory implements FirehoseFactory < StringInputRowParser >
{
+ private static ... | add more logging |
<nb>
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
package NAMESPACE ;
import NAMESPACE ; | remove author and date |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class TypeNameStrategy implements ElementNameStrategy {
nameSpace = xmlSchema . namespace ( ) ;
}
}
- return new Q... | Fixed camel soap may marshal invalid XML with no tag name in the body |
<nb> class MultiProducerPublisher implements Publisher
private static final long scale = UNSAFE . arrayIndexScale ( int [ ] . class ) ;
private final WaitStrategy waitStrategy ;
- SINGLE
+ SINGLE
+ SINGLE
private final int [ ] availableBuffer ;
private final int indexMask ;
private final int indexShif... | Added detailed comments for MultiProducerPublisher |
<nb> public abstract class Editor extends JFrame implements RunnerListener {
}
} ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+
SINGLE
handleOpenInternal ( path ) ; | Add note to Editor constructor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RegisterRules implements Startable {
. setEffortToFixDescription ( ruleDef . effortToFixDescription ( ) )
. setSystemTags (... | fix quality flaw code rewrite |
<nb> public final class MongoDbBasicConverters {
Map < ? , ? > m = OBJECT_MAPPER . convertValue ( value , Map . class ) ;
answer = new BasicDBObject ( m ) ;
} catch ( Exception e ) {
- LOG . warn ( STRING0 ,
- value . getClass ( ) . getCanonicalName ( ) ) ;
+ LOG . warn ( STRING1 ,
+ value . getClass ( ) ... | Add information to be logged about underlying exception on Object DBObject conversion |
<nb> public class ResolveImportUtil {
COMMENT
COMMENT
@ notnull
- private static List < PsiElement > resolveModule ( @ nullable PyQualifiedName qualifiedName , PsiFile source_file ,
+ public static List < PsiElement > resolveModule ( @ nullable PyQualifiedName qualifiedName , PsiFile source_file ,
boolean i... | check Django availability in Django run configuration |
<nb> public class ScissorStack {
scissor . height = Math . max ( NUMBER0 , maxY - minY ) ;
}
scissors . add ( scissor ) ;
- Gdx . gl . glScissor ( Math . round ( scissor . x ) , Math . round ( scissor . y ) , Math . round ( scissor . width ) - NUMBER0 ,
- Math . round ( scissor . height ) - NUMBER0 ) ;
+ Gd... | Now I m just changing things so I can change them back |
<nb> public class ZLSwingLibrary extends ZLibrary {
@ suppresswarnings ( STRING0 )
public void run ( String [ ] args ) {
+ ZLibrary . FileNameDelimiter = STRING1 ;
+ ZLibrary . PathDelimiter = STRING2 ;
+ SINGLE
SINGLE
new ZLOwnXMLProcessorFactory ( ) ;
loadProperties ( ) ;
<nb> public class ZLSwing... | to SwingLibrary add small method for initializing some fiealds init |
<nb> public class SipToFlashAudioStream implements TranscodedAudioDataListener , RtpSt
private void pushAudio ( byte [ ] audio , long timestamp ) {
if ( ! sentMetadata ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
IoBuffer mBuffer = IoBuffer . allocate ( NUMBER0 ) ;
mBuffer . setAutoExpand (... | add comments and fix timestamps should be incremented based on codec not based on clock |
<nb> public class GlobalInspectionContextBase extends UserDataHolderBase implements G
}
myTools . clear ( ) ;
- EntryPointsManager . getInstance ( getProject ( ) ) . cleanup ( ) ;
+ EntryPointsManager entryPointsManager = EntryPointsManager . getInstance ( getProject ( ) ) ;
+ if ( entryPointsManager != nul... | fixed broken tests in AppCode |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class LabelAndConfiguration {
Label label , @ nullable BuildConfiguration configuration ) {
return new LabelAndConfiguration ( label , configuration ) ;
}
+
+ @ override
+... | Add toString method to LabelAndConfiguration |
<nb> public class AtomicObserver < T > implements Observer < T > {
@ override
public void onNext ( T args ) {
- if ( ! isFinished . get ( ) ) {
- actual . onNext ( args ) ;
+ try {
+ if ( ! isFinished . get ( ) ) {
+ actual . onNext ( args ) ;
+ }
+ } catch ( Exception e ) {
+ SINGLE
+ onError (... | add error handling for onNext failure so exceptions don t get thrown up the stack but instead via onError |
<nb> public class PluginTests extends TestCase {
public void testAwareBeanPostProcessorsAreRegistered ( ) {
Map grailsApplicationAwares = appCtx . getBeansOfType ( GrailsApplicationAware . class ) ;
- assertEquals ( NUMBER0 , grailsApplicationAwares . size ( ) ) ;
+ assertEquals ( NUMBER1 , grailsApplicationA... | changed assertion to fix build until I get a chance to speak to steven |
<nb> public class FragmentMvpDelegateUiLessMvpFragmentTest {
Assert . fail ( STRING0 ) ;
} catch ( IllegalStateException e ) {
Assert . assertEquals (
- STRING1 ,
+ STRING2 + UiLessFragment . class . getCanonicalName ( ) + STRING3 ,
e . getMessage ( ) ) ;
}
} | Fixing Unit test issue caused by moving into other package |
<nb> public class ControlFlowAnalyzer extends JavaElementVisitor {
final PsiAnnotation contractAnno = findContractAnnotation ( method ) ;
final int paramCount = method . getParameterList ( ) . getParametersCount ( ) ;
if ( contractAnno != null ) {
+ if ( AnnotationUtil . isInferredAnnotation ( contractAnno ) &&... | don t use inferred contracts for overrideable methods |
<nb> public final class PreparedPutObject < T > extends PreparedPut < PutResult > {
COMMENT
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
@ nonnull
public PreparedPutObject < T > prepare ( ) {
return new PreparedPutObject < T > ( | Remove unused SuppressWarning |
<nb> public abstract class DeclarationDescriptorImpl extends AnnotatedImpl implements
@ override
public String toString ( ) {
- return DescriptorRenderer . TEXT . render ( this ) + STRING0 + getClass ( ) . getSimpleName ( ) + STRING1 + Integer . toHexString ( System . identityHashCode ( this ) ) + STRING2 ;
+... | make DeclarationDescriptor toString safe |
<nb> public class RenderScriptGL extends RenderScript {
}
mMessageThread = new MessageThread ( this ) ;
mMessageThread . start ( ) ;
+ mGCThread = new GCThread ( this ) ;
+ mGCThread . start ( ) ;
+
}
COMMENT | Add GC thread to RSGL |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public abstract class CompleteChannelFuture implements ChannelFuture {
+ abstract class CompleteChannelFuture implements ChannelFuture {
private final Channel channel ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ; ... | Tighten up visibility as the user should use Channel new Future |
<nb> public class AutoCompleteTextView extends EditText implements Filter . FilterListe
}
}
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- boolean ignoreBottomDecorations = mDropDownAlwaysVisible &&
+ SINGLE
+ boolean ignoreBottomDecorations =
mPopup . getInputMethodMode ( ) == PopupWindow . INPUT_METHOD_N... | Ignore unneeded soft keyboard in ACTV height calc |
<nb> public class ComplementaryFontsRegistry {
FONT_NAME_TO_STYLE . put ( STRING0 , Font . BOLD | Font . ITALIC ) ;
FONT_NAME_TO_STYLE . put ( STRING1 , Font . ITALIC ) ;
FONT_NAME_TO_STYLE . put ( STRING2 , Font . BOLD | Font . ITALIC ) ;
+ FONT_NAME_TO_STYLE . put ( STRING3 , Font . ITALIC ) ;
+ FONT_NAME_T... | add font style mapping for Hasklig |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAME... | use updated icon in case of new welcome screen |
<nb> public class WorldEditController {
flushBlockBag ( player , editSession ) ;
}
+ } else {
+ player . printError ( STRING0 ) ;
}
} | Now prints an error message if permission is not available |
<nb> public class ParallelResolver implements Resolver
SINGLE
synchronized ( redemptionLock )
{
- if ( resolution . primaryResolverRespondedFirst
- && redemptionStatus > NUMBER0 )
+ if ( ! resolution . primaryResolverRespondedFirst )
{
+ SINGLE
+ SINGLE
+ redemptionStatus = currentDnsRedemption ;
... | Slightly improves redemption mechanism in parallel DNS queries |
<nb> public class RunMojo extends AbstractExecMojo {
class IsolatedThreadGroup extends ThreadGroup {
Throwable uncaughtException ; SINGLE
- public IsolatedThreadGroup ( String name ) {
+ IsolatedThreadGroup ( String name ) {
super ( name ) ;
} | Fix CS error |
<nb> public final class CalendarContract {
intent . setData ( ContentUris . withAppendedId ( CalendarContract . CONTENT_URI , alarmTime ) ) ;
intent . putExtra ( ALARM_TIME , alarmTime ) ;
PendingIntent pi = PendingIntent . getBroadcast ( context , NUMBER0 , intent , NUMBER0 ) ;
- manager . set ( AlarmManager .... | Make more calendar alarms exact |
<nb> public class DefaultGroovyMethods {
} else if ( clazz == Set . class ) {
if ( col instanceof Set ) return col ;
return new HashSet ( col ) ;
+ } else if ( clazz == SortedSet . class ) {
+ if ( col instanceof TreeSet ) return col ;
+ return new TreeSet ( col ) ;
}
return asType ( ( Object ) col , cl... | adds support for list as SortedMap |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SquidDatabaseTest extends DatabaseTes... | Add test for custom SQLite bindings version |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class KotlinBuilderModuleScriptGenerator {
@ notnull
private static Collection < File > findClassPathRoots ( @ notnull ModuleBuildTarget target ) {
- return getAllDependencies ( tar... | Filtering out non existent directories from generated classpath |
<nb> public class RealmResults < E extends RealmObject > extends AbstractList < E > {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class RealmResults < E extends RealmObject > extends AbstractList < E > {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>... | Fixed javadoc issues |
<nb> public class HtmlUtil {
if ( text . charAt ( NUMBER0 ) == STRING0 || text . charAt ( NUMBER0 ) == STRING1 ) ++ offset ;
text = text . substring ( offset , text . length ( ) - offset ) ;
- refs = new FileReferenceSet ( text , element , offset , ReferenceType . FILE_TYPE , this ) . getAllReferences ( ) ;
+... | fixed issue with absolute references |
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in documentation |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpServletRequest {
- private static final String CONTENT_DISPOSITION = STRING0 ;
+ private static final String CONTENT_DISPOSITION ... | Make Content Disposition header case insensitive |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
+ @ runwith ( HazelcastJUnit4ClassRunner . c... | Added missing test annotations |
<nb> public class AmbiguousBindingReporter {
public AmbiguousBindingReporter ( ModelReference < ? > reference , ModelPath path1 , ModelRuleDescriptor creator1 , ModelPath path2 , ModelRuleDescriptor creator2 ) {
this ( reference . getType ( ) . toString ( ) , reference . getDescription ( ) , ImmutableList . of ( ... | Make method null safe |
<nb> class PluginResolverFactory implements Factory < PluginResolver > {
this . injectedClasspathPluginResolver = injectedClasspathPluginResolver ;
}
+ @ override
public PluginResolver create ( ) {
List < PluginResolver > resolvers = new LinkedList < PluginResolver > ( ) ;
addDefaultResolvers ( resolvers ... | Add missing Override |
<nb> public final class FileUtils {
public static void deleteFileRecursively ( String path ) throws IOException {
Path root = Paths . get ( path ) ;
- SINGLE
Files . walkFileTree ( root , new SimpleFileVisitor < Path > ( ) {
@ override
public FileVisitResult visitFile ( Path file , BasicFileAttributes att... | Remove a TODO |
<nb> public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
private void inferDiamondType ( final ConstructorCallExpression cce , final ClassNode lType ) {
SINGLE
ClassNode node = cce . getType ( ) ;
- if ( node . isUsingGenerics ( ) && node instanceof InnerClassNode && ( ( InnerClassNode ) no... | Fix side effect when left type of assignment doesn t use generics |
<nb> public interface AgentBuilder {
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public Default ( ) {
this ( new ByteBuddy ( ) ) ; | Removed unneccessary reference |
<nb> import NAMESPACE ;
public interface FunctionValue extends ObjectValue {
COMMENT
+ COMMENT
+ COMMENT
+ @ notnull
+ AsyncResult < FunctionValue > resolve ( ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface FunctionValue extends ObjectValue {
@ nullable
Scope [ ] getScopes ... | rename asFunction to resolve |
<nb> public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
createMenuItem ( menu , CONNECT_TO , R . string . osmo_connect ,
COMMENT
MenuItemCompat . SHOW_AS_ACTION_ALWAYS ) ;
- createMenuItem ( menu , SHARE_SESSION , R . string . osmo_share_session ,
- R . drawable . ic_action_gshare... | Simplify osmo menu |
<nb> public class BackpressureTests {
}
final static Func1 < Integer , Integer > SLOW_PASS_THRU = new Func1 < Integer , Integer > ( ) {
-
+ volatile int sink ;
@ override
public Integer call ( Integer t1 ) {
SINGLE
String t = STRING0 ;
+ int s = sink ;
for ( int i = NUMBER0 ; i >= NUMBER1 ; i -- )... | Fixed SLOW_PASS_THRU to prevent JIT optimizing it away |
<nb> final class HttpReadListener implements ChannelListener < StreamSourceChannel > , Ex
SINGLE
SINGLE
channel . getReadSetter ( ) . set ( null ) ;
- channel . suspendReads ( ) ;
final HttpServerExchange httpServerExchange = this . httpServerExchange ;
httpServerExchange . putAttachment ( UndertowOptions... | Don t suspend reads in the HTTP read listener just remove us as the current listener |
<nb> public class ButtonGroup {
remove ( buttons [ i ] ) ;
}
+ public void clear ( ) {
+ buttons . clear ( ) ;
+ checkedButtons . clear ( ) ;
+ }
+
COMMENT
public void setChecked ( String text ) {
if ( text == null ) throw new IllegalArgumentException ( STRING0 ) ; | Added ButtonGroup clear |
<nb> public class JabberAccountRegistrationWizard
public ProtocolProviderService signin ( String userName , String password )
throws OperationFailedException
{
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( firstWizardPage == null )
+ {
+ firstWizardPage = new FirstWizardPage ( this ) ;
+ AccountPanel accPanel =... | Fix jabber account default values and creating it from initial registration form |
<nb> public class ToroIndexToJsonConverter implements Converter < String , NamedToroInde
if ( ! entry . getValue ( ) ) {
descBuilder . add ( attPosition ) ;
- attPosition ++ ;
hasDescending = true ;
}
+ attPosition ++ ;
}
objectBuilder . add ( ATTS_KEY , attsBuilder ) ;
if ( hasDescending ) { | Fixed a bug related to indexes |
<nb> public class WallpaperManagerService extends IWallpaperManager . Stub {
}
File file = new File ( dir , WALLPAPER ) ;
ParcelFileDescriptor fd = ParcelFileDescriptor . open ( file ,
- MODE_CREATE | MODE_READ_WRITE ) ;
+ MODE_CREATE | MODE_READ_WRITE | MODE_TRUNCATE ) ;
if ( ! SELinux . restorecon ( file ... | Write new wallpaper files from scratch |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchFragment extends Fragment {
mRowsFragment . setOnItemSelectedListener ( listener ) ;
}
+ COMMENT
+ COMMENT
+ ... | adding missing APIs to SearchFragment |
<nb> public class Quaternion implements Serializable {
public float getAngleAroundRad ( final float axisX , final float axisY , final float axisZ ) {
final float d = Vector3 . dot ( this . x , this . y , this . z , axisX , axisY , axisZ ) ;
final float l2 = Quaternion . len2 ( axisX * d , axisY * d , axisZ * d , ... | Added cast to float in getAngleAroundRad calculation because before it could happen that the function return NaN |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ path ( STRING0 )
+ @ path ( STRING1 )
@ produces ( MediaType . APPLICATION_JSON )
public class PersonResource {
<nb> public class PersonResource {
}
@ get
- @ path ( STRING2 )
public Person getPerson ( @ pathparam ( STRING3 ) ... | Merged the two Path annotations into one |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MapLockTest extends HazelcastTestSupport {
assertTrue ( latch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ;
}
+ @ catego... | Moved MapLockTest testLockEvicationWithMigration to nightly |
<nb> abstract class AbstractDependenciesConfigurer extends AbstractDependencyManageme
private boolean isExcluded ( DependencyConfigurationContext context , EnhancedDefaultDependencyDescriptor dependencyDescriptor ) {
ExcludeRule [ ] excludeRules = context . getExcludeRules ( ) ;
- ArtifactId aid = new ArtifactI... | fixed failing test |
<nb> public interface SelectConnectByStep extends SelectGroupByStep {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ support ( { CUBRID , ORACLE } )
SelectConnectByConditionStep connectBy ( String sql ) ;
<nb> public interface SelectConnectByStep extends SelectGroupByStep {
COMMENT
COMMENT ... | Added some additional Javadoc links |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Fixed wrong encoder setup in protobuf javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReviewPresenter implements IsWidget
{
server_ = server ;
view_ = view ;
- globalDisplay_ = globalDisplay ;
vcsState... | eliminate eclipse warnings |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
public class CameraPreview extends SurfaceView implements SurfaceHolder . Callback {
private static final String TAG = CameraPreview . c... | add aync opening camera while start |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class ClientCall < ReqT , R... | allow ClientCall cancel before start |
<nb> public class QuickMenu
this . infoButton . setName ( STRING0 ) ;
this . soundButton . setName ( STRING1 ) ;
- this . initPluginComponents ( ) ;
-
this . addButton . addActionListener ( this ) ;
this . configureButton . addActionListener ( this ) ;
this . searchButton . addActionListener ( this ) ; | add plugin components added before the gui is shown |
<nb> public class KeyVersionFetcherCLI {
StringBuilder sb = new StringBuilder ( ) ;
sb . append ( ByteUtils . toHexString ( key ) ) ;
for ( Versioned < byte [ ] > value : values ) {
+ SINGLE
Version version = value . getVersion ( ) ;
sb . append ( STRING0 ) . append ( version . toString ( ) ) ;
} | Add TODO to handle RO in KeyVersionFetcher |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class GroovyRunConfigurationEditor extends SettingsEditor < GroovyScriptRun
configuration . setVMParameters ( myVMParameters . getText ( ) ) ;
configuration . setDebugEnabled ( myDebugCB . isSelected ( ) ) ;
configuration . setScri... | trim paths in script run configurations |
<nb> public class ComponentSerializationUtil {
public static < S > void loadComponentState ( @ notnull PersistentStateComponent < S > configuration , @ nullable Element element ) {
if ( element != null ) {
Class < S > stateClass = getStateClass ( configuration . getClass ( ) ) ;
- configuration . loadState ( Xm... | don t pass null to loadState |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ impo... | Fixed config bug |
<nb> public class HttpRequest {
public static final String HEADER_HOST = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ public static final String HEADER_LOCATION = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
public static final String HEADER_SERVER = STRING2 ;
<nb> public class HttpRequest {
}
COMMENT... | Add helper to get Location header response value |
<nb> public class DocumentFoldingInfo implements JDOMExternalizable , CodeFoldingState
PsiElement restoredElement = FoldingPolicy . restoreBySignature ( psiElement . getContainingFile ( ) , signature ) ;
if ( ! psiElement . equals ( restoredElement ) ) {
- restoredElement = FoldingPolicy . restoreBySignature ( ... | extended diagnostics message |
<nb> public class NodeCmd
GETENDPOINTS ,
GETSSTABLES ,
GOSSIPINFO ,
+ HELP ,
INFO ,
INVALIDATEKEYCACHE ,
INVALIDATEROWCACHE ,
<nb> public class NodeCmd
switch ( command )
{
+ case HELP : printUsage ( ) ; break ;
case RING :
if ( arguments . length > NUMBER0 ) { nodeCmd . printRing ( System .... | promote HELP to be a real nodetool command to avoid error message |
<nb> public class AppEngineUtil {
}
public static void setupAppEngineArtifactCombobox ( @ notnull Project project , final @ notnull JComboBox comboBox , final boolean withAppEngineFacetOnly ) {
- comboBox . setRenderer ( new ListCellRendererWrapper < Artifact > ( comboBox ) {
+ comboBox . setRenderer ( new Li... | Deprecate unnecessary ListCellRendererWrapper constructor parameter |
<nb> public class ApkDecoder {
JarFile jf = new JarFile ( mApkFile . getAbsoluteFile ( ) ) ;
JarEntry je = jf . getJarEntry ( STRING0 ) ;
if ( je != null ) {
- setCompressionType ( je . getMethod ( ) ) ;
+ int compression = je . getMethod ( ) ;
+ mCompressResources = ( compression != ZipEntry . STORED ) && ... | Optimized not need function |
<nb> public class Division {
int absB = Math . abs ( b ) ;
long result = NUMBER0 ;
- if ( ( absA - absB ) <= NUMBER0 ) return result ;
+ int diff = absA - absB ;
+ if ( diff <= NUMBER0 ) return result ;
- result += divisionUsingRecursion ( ( absA - absB ) , absB ) ;
+ result += divisionUsingRecursion ... | Updated recursive mathematics |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.