Buggy code:
public class Sanguino3GDriver extends SerialDriver implements MultiTool , OnboardParameters , PenPlotter , SDCardCapture { protected static final int DEFAULT_RETRIES = 5 ; Version toolVersion = new Version ( 0 , 0 ) ; private boolean eepromChecked = false ; public Sanguino3GDriver ( ) { } public void loadXML ( Node xml ) { } public void initialize ( ) { } public boolean initializeBot ( ) { } private boolean attemptConnection ( ) { } public void assessState ( ) { } protected void connectToDevice ( int timeoutMillis ) { } protected PacketResponse runCommand ( byte [ ] packet ) throws RetryException { } protected PacketResponse runQuery ( byte [ ] packet , int retries ) { } protected PacketResponse runQuery ( byte [ ] packet ) { } public List < Integer > toolheadsWithStoredData ( ) { } void printDebugData ( String title , byte [ ] data ) { } protected PacketResponse runCommand ( byte [ ] packet , int retries ) throws RetryException { } static boolean isNotifiedFinishedFeature = false ; public boolean isFinished ( ) { } public boolean isBufferEmpty ( ) { } public void dispose ( ) { } public Version getVersionInternal ( ) { } public CommunicationStatistics getCommunicationStatistics ( ) { } private void initSlave ( int toolhead ) { } public void sendInit ( ) { } public void queuePoint ( Point5d p ) throws RetryException { } protected void queueAbsolutePoint ( Point5d steps , long micros ) throws RetryException { } public void setCurrentPosition ( Point5d p ) throws RetryException { } public void homeAxes ( EnumSet < AxisId > axes , boolean positive , double feedrate ) throws RetryException { } public void delay ( long millis ) throws RetryException { } public void openClamp ( int clampIndex ) { } public void closeClamp ( int clampIndex ) { } public void enableDrives ( ) throws RetryException { } public void disableDrives ( ) throws RetryException { } private int axesToBitfield ( EnumSet < AxisId > axes ) { } public void enableAxes ( EnumSet < AxisId > axes ) throws RetryException { } public void disableAxes ( EnumSet < AxisId > axes ) throws RetryException { } public void changeGearRatio ( int ratioIndex ) { } public void requestToolChange ( int toolhead , int timeout ) throws RetryException { } public void selectTool ( int toolIndex ) throws RetryException { } public void setMotorRPM ( double rpm , int toolhead ) throws RetryException { } public void setMotorSpeedPWM ( int pwm ) throws RetryException { } public void setMotorSpeedPWM ( int pwm , int toolhead ) throws RetryException { if ( toolhead == ( - 1 ) ) toolhead = machine . currentTool ( ) . getIndex ( ) ; if ( ( machine . getTool ( toolhead ) . getMotorUsesRelay ( ) ) && ( pwm > 0 ) ) { logger . fine ( "Tool<seq2seq4repair_space>motor<seq2seq4repair_space>uses<seq2seq4repair_space>relay,<seq2seq4repair_space>overriding<seq2seq4repair_space>PWM<seq2seq4repair_space>setting" ) ; pwm = 255 ; } logger . fine ( ( ( "Setting<seq2seq4repair_space>motor<seq2seq4repair_space>1<seq2seq4repair_space>speed<seq2seq4repair_space>to<seq2seq4repair_space>" + pwm ) + "<seq2seq4repair_space>PWM" ) ) ; PacketBuilder pb = new PacketBuilder ( TOOL_COMMAND . getCode ( ) ) ; pb . add8 ( ( ( byte ) ( toolhead ) ) ) ; pb . add8 ( SET_MOTOR_1_PWM . getCode ( ) ) ; pb . add8 ( ( ( byte ) ( 1 ) ) ) ; pb . add8 ( ( ( byte ) ( pwm > 255 ? 255 : pwm ) ) ) ; runCommand ( pb . getPacket ( ) ) ; <START_BUG> super . setMotorSpeedPWM ( pwm ) ; <END_BUG> } @ Deprecated public void enableMotor ( ) throws RetryException { } public void enableMotor ( int toolhead ) throws RetryException { } @ Override public void disableMotor ( int toolhead ) throws RetryException { } @ Deprecated public int getMotorSpeedPWM ( ) { } public int getMotorSpeedPWM ( int toolhead ) { } public double getMotorRPM ( ) { } public double getMotorRPM ( int toolhead ) { } @ Deprecated public void readToolStatus ( ) { } public void readToolStatus ( int toolhead ) { } private int fixSigned ( int value ) { } @ Deprecated public void readToolPIDState ( ) { } public void readToolPIDState ( int toolhead ) { } @ Deprecated public void setServoPos ( int index , double degree ) throws RetryException { } public void setServoPos ( int index , double degree , int toolhead ) throws RetryException { } @ Deprecated public void setSpindleRPM ( double rpm ) throws RetryException { } public void setSpindleRPM ( double rpm , int toolhead ) throws RetryException { } @ Deprecated public void setSpindleSpeedPWM ( int pwm ) throws RetryException { } public void setSpindleSpeedPWM ( int pwm , int toolhead ) throws RetryException { } @ Deprecated public void enableSpindle ( ) throws RetryException { } public void enableSpindle ( int toolhead ) throws RetryException { } @ Deprecated public void disableSpindle ( ) throws RetryException { } public void disableSpindle ( int toolhead ) throws RetryException { } @ Deprecated public double getSpindleSpeedRPM ( ) throws RetryException { } public double getSpindleSpeedRPM ( int toolhead ) throws RetryException { } @ Deprecated public int getSpindleSpeedPWM ( ) { } public int getSpindleSpeedPWM ( int toolhead ) { } @ Deprecated public void setTemperature ( double temperature ) throws RetryException { } public void setTemperature ( double temperature , int toolhead ) throws RetryException { } @ Deprecated public void readTemperature ( ) { } @ Override public void readAllTemperatures ( ) { } public void readTemperature ( int toolhead ) { } @ Deprecated public void setPlatformTemperature ( double temperature ) throws RetryException { } public void setPlatformTemperature ( double temperature , int toolhead ) throws RetryException { } public void setAllPlatformTemperatures ( double temperature ) throws RetryException { } @ Deprecated public void readPlatformTemperature ( ) { } public void readPlatformTemperature ( int toolhead ) { }

Fix:
super . setMotorSpeedPWM ( pwm , toolhead ) ;