nus-yam/ex-repair huggingface dataset:
Program: 197592
Project: 197592
Buggy source:
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  if (entry.row != null) {
    entry.row.resetHeight();
  }
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
}

Fixed version (ground truth):
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
  entry.row.resetHeight();
}
Program: 197593
Project: 197593
Buggy source:
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(mAnimationsEnabled && mIsExpanded,child);
}

Fixed version (ground truth):
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(child);
}
Program: 197594
Project: 197594
Buggy source:
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
}

Fixed version (ground truth):
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
  updateAnimationState(view);
}
Program: 197595
Project: 197595
Buggy source:
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  if (entry.row != null) {
    entry.row.resetHeight();
  }
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
}

Fixed version (ground truth):
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
  entry.row.resetHeight();
}
Program: 197596
Project: 197596
Buggy source:
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(mAnimationsEnabled && mIsExpanded,child);
}

Fixed version (ground truth):
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(child);
}
Program: 197597
Project: 197597
Buggy source:
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
}

Fixed version (ground truth):
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
  updateAnimationState(view);
}
Program: 197598
Project: 197598
Buggy source:
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  if (entry.row != null) {
    entry.row.resetHeight();
  }
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
}

Fixed version (ground truth):
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
  entry.row.resetHeight();
}
Program: 197599
Project: 197599
Buggy source:
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(mAnimationsEnabled && mIsExpanded,child);
}

Fixed version (ground truth):
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(child);
}
Program: 197600
Project: 197600
Buggy source:
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
}

Fixed version (ground truth):
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
  updateAnimationState(view);
}
Program: 197601
Project: 197601
Buggy source:
/** 
 * View.OnClickListener Implementation 
 */
@Override public void onClick(final View v){
  final TaskView tv=this;
  final boolean delayViewClick=(v != this);
  if (delayViewClick) {
    postDelayed(new Runnable(){
      @Override public void run(){
        if (Constants.DebugFlags.App.EnableTaskFiltering && v == mHeaderView.mApplicationIcon) {
          mCb.onTaskViewAppIconClicked(tv);
        }
 else         if (v == mHeaderView.mDismissButton) {
          dismissTask();
        }
      }
    }
,125);
  }
 else {
    if (v == mActionButtonView) {
      mActionButtonView.setTranslationZ(0f);
    }
    mCb.onTaskViewClicked(tv,tv.getTask(),(v == mFooterView || v == mActionButtonView));
  }
}

Fixed version (ground truth):
/** 
 * View.OnClickListener Implementation 
 */
@Override public void onClick(final View v){
  final TaskView tv=this;
  final boolean delayViewClick=(v != this) && (v != mActionButtonView);
  if (delayViewClick) {
    postDelayed(new Runnable(){
      @Override public void run(){
        if (Constants.DebugFlags.App.EnableTaskFiltering && v == mHeaderView.mApplicationIcon) {
          mCb.onTaskViewAppIconClicked(tv);
        }
 else         if (v == mHeaderView.mDismissButton) {
          dismissTask();
        }
      }
    }
,125);
  }
 else {
    if (v == mActionButtonView) {
      mActionButtonView.setTranslationZ(0f);
    }
    mCb.onTaskViewClicked(tv,tv.getTask(),(v == mFooterView || v == mActionButtonView));
  }
}
Program: 197602
Project: 197602
Buggy source:
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  if (entry.row != null) {
    entry.row.resetHeight();
  }
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
}

Fixed version (ground truth):
private void updateNotificationViews(NotificationData.Entry entry,StatusBarNotification notification,boolean isHeadsUp){
  final RemoteViews contentView=notification.getNotification().contentView;
  final RemoteViews bigContentView=isHeadsUp ? notification.getNotification().headsUpContentView : notification.getNotification().bigContentView;
  final Notification publicVersion=notification.getNotification().publicVersion;
  final RemoteViews publicContentView=publicVersion != null ? publicVersion.contentView : null;
  contentView.reapply(mContext,entry.expanded,mOnClickHandler);
  if (bigContentView != null && entry.getBigContentView() != null) {
    bigContentView.reapply(mContext,entry.getBigContentView(),mOnClickHandler);
  }
  if (publicContentView != null && entry.getPublicContentView() != null) {
    publicContentView.reapply(mContext,entry.getPublicContentView(),mOnClickHandler);
  }
  final PendingIntent contentIntent=notification.getNotification().contentIntent;
  if (contentIntent != null) {
    final View.OnClickListener listener=makeClicker(contentIntent,notification.getKey(),isHeadsUp);
    entry.row.setOnClickListener(listener);
  }
 else {
    entry.row.setOnClickListener(null);
  }
  entry.row.notifyContentUpdated();
  entry.row.resetHeight();
}
Program: 197603
Project: 197603
Buggy source:
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(mAnimationsEnabled && mIsExpanded,child);
}

Fixed version (ground truth):
@Override protected void onViewAdded(View child){
  super.onViewAdded(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(child);
}
Program: 197604
Project: 197604
Buggy source:
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
}

Fixed version (ground truth):
@Override public void onReset(ExpandableView view){
  if (mIsExpanded && mAnimationsEnabled) {
    mRequestViewResizeAnimationOnLayout=true;
  }
  mStackScrollAlgorithm.onReset(view);
  updateAnimationState(view);
}
Program: 197605
Project: 197605
Buggy source:
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBarState == StatusBarState.KEYGUARD;
}
Program: 197606
Project: 197606
Buggy source:
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.getBarState() == StatusBarState.KEYGUARD;
}
Program: 197607
Project: 197607
Buggy source:
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBarState == StatusBarState.KEYGUARD;
}
Program: 197608
Project: 197608
Buggy source:
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.getBarState() == StatusBarState.KEYGUARD;
}
Program: 197609
Project: 197609
Buggy source:
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBarState == StatusBarState.KEYGUARD;
}
Program: 197610
Project: 197610
Buggy source:
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.getBarState() == StatusBarState.KEYGUARD;
}
Program: 197611
Project: 197611
Buggy source:
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBarState == StatusBarState.KEYGUARD;
}
Program: 197612
Project: 197612
Buggy source:
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.getBarState() == StatusBarState.KEYGUARD;
}
Program: 197613
Project: 197613
Buggy source:
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBarState == StatusBarState.KEYGUARD;
}
Program: 197614
Project: 197614
Buggy source:
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.getBarState() == StatusBarState.KEYGUARD;
}
Program: 197615
Project: 197615
Buggy source:
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
private boolean isBelowFalsingThreshold(){
  return !mQsTouchAboveFalsingThreshold && mStatusBarState == StatusBarState.KEYGUARD;
}
Program: 197616
Project: 197616
Buggy source:
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.isFalsingThresholdNeeded();
}

Fixed version (ground truth):
@Override public boolean isAntiFalsingNeeded(){
  return mPhoneStatusBar.getBarState() == StatusBarState.KEYGUARD;
}
Program: 197618
Project: 197618
Buggy source:
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
  recycleUnchecked();
}

Fixed version (ground truth):
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    if (gCheckRecycle) {
      throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
    }
    return;
  }
  recycleUnchecked();
}
Program: 197620
Project: 197620
Buggy source:
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
  recycleUnchecked();
}

Fixed version (ground truth):
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    if (gCheckRecycle) {
      throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
    }
    return;
  }
  recycleUnchecked();
}
Program: 197622
Project: 197622
Buggy source:
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
  recycleUnchecked();
}

Fixed version (ground truth):
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    if (gCheckRecycle) {
      throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
    }
    return;
  }
  recycleUnchecked();
}
Program: 197624
Project: 197624
Buggy source:
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
  recycleUnchecked();
}

Fixed version (ground truth):
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    if (gCheckRecycle) {
      throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
    }
    return;
  }
  recycleUnchecked();
}
Program: 197626
Project: 197626
Buggy source:
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
  recycleUnchecked();
}

Fixed version (ground truth):
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    if (gCheckRecycle) {
      throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
    }
    return;
  }
  recycleUnchecked();
}
Program: 197627
Project: 197627
Buggy source:
public abstract Map<String,? extends LongCounter> getWakeupReasonStats();

Fixed version (ground truth):
public abstract Map<String,? extends Timer> getWakeupReasonStats();
Program: 197629
Project: 197629
Buggy source:
public Map<String,? extends LongCounter> getWakeupReasonStats(){
  return mWakeupReasonStats;
}

Fixed version (ground truth):
public Map<String,? extends Timer> getWakeupReasonStats(){
  return mWakeupReasonStats;
}
Program: 197632
Project: 197632
Buggy source:
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.stopObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}

Fixed version (ground truth):
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.startObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}
Program: 197634
Project: 197634
Buggy source:
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    LongSamplingCounter timer=getWakeupReasonCounterLocked(mLastWakeupReason);
    timer.addCountLocked(deltaUptime);
    mLastWakeupReason=null;
  }
}

Fixed version (ground truth):
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    SamplingTimer timer=getWakeupReasonTimerLocked(mLastWakeupReason);
    timer.addCurrentReportedCount(1);
    timer.addCurrentReportedTotalTime(deltaUptime * 1000);
    mLastWakeupReason=null;
  }
}
Program: 197636
Project: 197636
Buggy source:
public abstract Map<String,? extends LongCounter> getWakeupReasonStats();

Fixed version (ground truth):
public abstract Map<String,? extends Timer> getWakeupReasonStats();
Program: 197638
Project: 197638
Buggy source:
public Map<String,? extends LongCounter> getWakeupReasonStats(){
  return mWakeupReasonStats;
}

Fixed version (ground truth):
public Map<String,? extends Timer> getWakeupReasonStats(){
  return mWakeupReasonStats;
}
Program: 197641
Project: 197641
Buggy source:
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.stopObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}

Fixed version (ground truth):
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.startObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}
Program: 197643
Project: 197643
Buggy source:
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    LongSamplingCounter timer=getWakeupReasonCounterLocked(mLastWakeupReason);
    timer.addCountLocked(deltaUptime);
    mLastWakeupReason=null;
  }
}

Fixed version (ground truth):
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    SamplingTimer timer=getWakeupReasonTimerLocked(mLastWakeupReason);
    timer.addCurrentReportedCount(1);
    timer.addCurrentReportedTotalTime(deltaUptime * 1000);
    mLastWakeupReason=null;
  }
}
Program: 197645
Project: 197645
Buggy source:
public abstract Map<String,? extends LongCounter> getWakeupReasonStats();

Fixed version (ground truth):
public abstract Map<String,? extends Timer> getWakeupReasonStats();
Program: 197647
Project: 197647
Buggy source:
public Map<String,? extends LongCounter> getWakeupReasonStats(){
  return mWakeupReasonStats;
}

Fixed version (ground truth):
public Map<String,? extends Timer> getWakeupReasonStats(){
  return mWakeupReasonStats;
}
Program: 197650
Project: 197650
Buggy source:
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.stopObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}

Fixed version (ground truth):
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.startObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}
Program: 197652
Project: 197652
Buggy source:
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    LongSamplingCounter timer=getWakeupReasonCounterLocked(mLastWakeupReason);
    timer.addCountLocked(deltaUptime);
    mLastWakeupReason=null;
  }
}

Fixed version (ground truth):
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    SamplingTimer timer=getWakeupReasonTimerLocked(mLastWakeupReason);
    timer.addCurrentReportedCount(1);
    timer.addCurrentReportedTotalTime(deltaUptime * 1000);
    mLastWakeupReason=null;
  }
}
Program: 197654
Project: 197654
Buggy source:
public abstract Map<String,? extends LongCounter> getWakeupReasonStats();

Fixed version (ground truth):
public abstract Map<String,? extends Timer> getWakeupReasonStats();
Program: 197656
Project: 197656
Buggy source:
public Map<String,? extends LongCounter> getWakeupReasonStats(){
  return mWakeupReasonStats;
}

Fixed version (ground truth):
public Map<String,? extends Timer> getWakeupReasonStats(){
  return mWakeupReasonStats;
}
Program: 197659
Project: 197659
Buggy source:
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.stopObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}

Fixed version (ground truth):
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.startObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}
Program: 197661
Project: 197661
Buggy source:
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    LongSamplingCounter timer=getWakeupReasonCounterLocked(mLastWakeupReason);
    timer.addCountLocked(deltaUptime);
    mLastWakeupReason=null;
  }
}

Fixed version (ground truth):
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    SamplingTimer timer=getWakeupReasonTimerLocked(mLastWakeupReason);
    timer.addCurrentReportedCount(1);
    timer.addCurrentReportedTotalTime(deltaUptime * 1000);
    mLastWakeupReason=null;
  }
}
Program: 197663
Project: 197663
Buggy source:
public abstract Map<String,? extends LongCounter> getWakeupReasonStats();

Fixed version (ground truth):
public abstract Map<String,? extends Timer> getWakeupReasonStats();
Program: 197665
Project: 197665
Buggy source:
public Map<String,? extends LongCounter> getWakeupReasonStats(){
  return mWakeupReasonStats;
}

Fixed version (ground truth):
public Map<String,? extends Timer> getWakeupReasonStats(){
  return mWakeupReasonStats;
}
Program: 197668
Project: 197668
Buggy source:
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.stopObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}

Fixed version (ground truth):
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.startObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}
Program: 197670
Project: 197670
Buggy source:
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    LongSamplingCounter timer=getWakeupReasonCounterLocked(mLastWakeupReason);
    timer.addCountLocked(deltaUptime);
    mLastWakeupReason=null;
  }
}

Fixed version (ground truth):
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    SamplingTimer timer=getWakeupReasonTimerLocked(mLastWakeupReason);
    timer.addCurrentReportedCount(1);
    timer.addCurrentReportedTotalTime(deltaUptime * 1000);
    mLastWakeupReason=null;
  }
}
Program: 197673
Project: 197673
Buggy source:
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
  recycleUnchecked();
}

Fixed version (ground truth):
/** 
 * Return a Message instance to the global pool. <p> You MUST NOT touch the Message after calling this function because it has effectively been freed.  It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler. </p>
 */
public void recycle(){
  if (isInUse()) {
    if (gCheckRecycle) {
      throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
    }
    return;
  }
  recycleUnchecked();
}
Program: 197674
Project: 197674
Buggy source:
public abstract Map<String,? extends LongCounter> getWakeupReasonStats();

Fixed version (ground truth):
public abstract Map<String,? extends Timer> getWakeupReasonStats();
Program: 197676
Project: 197676
Buggy source:
public Map<String,? extends LongCounter> getWakeupReasonStats(){
  return mWakeupReasonStats;
}

Fixed version (ground truth):
public Map<String,? extends Timer> getWakeupReasonStats(){
  return mWakeupReasonStats;
}
Program: 197679
Project: 197679
Buggy source:
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.stopObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}

Fixed version (ground truth):
public void noteStartJobLocked(String name,long elapsedRealtimeMs){
  StopwatchTimer t=mJobStats.startObject(name);
  if (t != null) {
    t.startRunningLocked(elapsedRealtimeMs);
  }
}
Program: 197681
Project: 197681
Buggy source:
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    LongSamplingCounter timer=getWakeupReasonCounterLocked(mLastWakeupReason);
    timer.addCountLocked(deltaUptime);
    mLastWakeupReason=null;
  }
}

Fixed version (ground truth):
void aggregateLastWakeupUptimeLocked(long uptimeMs){
  if (mLastWakeupReason != null) {
    long deltaUptime=uptimeMs - mLastWakeupUptimeMs;
    SamplingTimer timer=getWakeupReasonTimerLocked(mLastWakeupReason);
    timer.addCurrentReportedCount(1);
    timer.addCurrentReportedTotalTime(deltaUptime * 1000);
    mLastWakeupReason=null;
  }
}
Program: 197683
Project: 197683
Buggy source:
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}

Fixed version (ground truth):
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed && observer != null) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}
Program: 197684
Project: 197684
Buggy source:
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}

Fixed version (ground truth):
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed && observer != null) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}
Program: 197685
Project: 197685
Buggy source:
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}

Fixed version (ground truth):
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed && observer != null) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}
Program: 197686
Project: 197686
Buggy source:
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}

Fixed version (ground truth):
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed && observer != null) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}
Program: 197687
Project: 197687
Buggy source:
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}

Fixed version (ground truth):
@Override public void setObserver(IPrintDocumentAdapterObserver observer){
  final boolean destroyed;
synchronized (mLock) {
    mObserver=observer;
    destroyed=isDestroyedLocked();
  }
  if (destroyed && observer != null) {
    try {
      observer.onDestroy();
    }
 catch (    RemoteException re) {
      Log.e(LOG_TAG,"String_Node_Str",re);
    }
  }
}
Program: 197688
Project: 197688
Buggy source:
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
}

Fixed version (ground truth):
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
  requestLayout();
}
Program: 197689
Project: 197689
Buggy source:
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
}

Fixed version (ground truth):
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
  requestLayout();
}
Program: 197690
Project: 197690
Buggy source:
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
}

Fixed version (ground truth):
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
  requestLayout();
}
Program: 197691
Project: 197691
Buggy source:
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
}

Fixed version (ground truth):
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
  requestLayout();
}
Program: 197692
Project: 197692
Buggy source:
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
}

Fixed version (ground truth):
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
  requestLayout();
}
Program: 197693
Project: 197693
Buggy source:
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
}

Fixed version (ground truth):
public void resetHeight(){
  mMaxExpandHeight=0;
  mWasReset=true;
  onHeightReset();
  requestLayout();
}
Program: 197694
Project: 197694
Buggy source:
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}

Fixed version (ground truth):
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}
Program: 197695
Project: 197695
Buggy source:
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}

Fixed version (ground truth):
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}
Program: 197696
Project: 197696
Buggy source:
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}

Fixed version (ground truth):
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}
Program: 197697
Project: 197697
Buggy source:
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}

Fixed version (ground truth):
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}
Program: 197698
Project: 197698
Buggy source:
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}

Fixed version (ground truth):
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}
Program: 197699
Project: 197699
Buggy source:
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}

Fixed version (ground truth):
ActivityRecord isInStackLocked(IBinder token){
  final ActivityRecord r=ActivityRecord.forToken(token);
  if (r != null) {
    final TaskRecord task=r.task;
    if (task != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) {
      if (task.stack != this)       Slog.w(TAG,"String_Node_Str");
      return r;
    }
  }
  return null;
}
Program: 197700
Project: 197700
Buggy source:
public RenderSpec(int bitmapWidth,int bitmapHeight,PrintAttributes printAttributes){
  this.bitmapWidth=bitmapWidth;
  this.bitmapHeight=bitmapHeight;
  this.printAttributes=printAttributes;
}

Fixed version (ground truth):
public RenderSpec(int bitmapWidth,int bitmapHeight,MediaSize mediaSize,Margins minMargins){
  this.bitmapWidth=bitmapWidth;
  this.bitmapHeight=bitmapHeight;
  printAttributes.setMediaSize(mediaSize);
  printAttributes.setMinMargins(minMargins);
}