Buggy code:
public class DeploymentDescription { private static final String RESOURCE_NAME = ( DeploymentDescription . class . getPackage ( ) . getName ( ) ) + ".LocalDescriptions" ; private DeploymentDescription ( ) { } public static final ModelNode getDeploymentDescription ( Locale locale , boolean includeEnabled , boolean includeContent , boolean includeRuntime ) { } public static ModelNode getSubDeploymentDescription ( Locale locale ) { } public static final ModelNode getUploadDeploymentBytesOperation ( Locale locale ) { } public static final ModelNode getUploadDeploymentURLOperation ( Locale locale ) { } public static final ModelNode getUploadDeploymentStreamAttachmentOperation ( Locale locale ) { final ResourceBundle bundle = DeploymentDescription . getResourceBundle ( locale ) ; final ModelNode root = new ModelNode ( ) ; root . get ( ModelDescriptionConstants . OPERATION_NAME ) . set ( ModelDescriptionConstants . UPLOAD_DEPLOYMENT_STREAM ) ; root . get ( ModelDescriptionConstants . DESCRIPTION ) . set ( bundle . getString ( "deployment.upload-stream" ) ) ; <START_BUG> root . get ( ModelDescriptionConstants . REQUEST_PROPERTIES , ModelDescriptionConstants . INPUT_STREAM_INDEX , ModelDescriptionConstants . TYPE ) . set ( STRING ) ; <END_BUG> root . get ( ModelDescriptionConstants . REQUEST_PROPERTIES , ModelDescriptionConstants . INPUT_STREAM_INDEX , ModelDescriptionConstants . DESCRIPTION ) . set ( bundle . getString ( "deployment.inputstream" ) ) ; root . get ( ModelDescriptionConstants . REQUEST_PROPERTIES , ModelDescriptionConstants . INPUT_STREAM_INDEX , ModelDescriptionConstants . REQUIRED ) . set ( true ) ; root . get ( ModelDescriptionConstants . REQUEST_PROPERTIES , ModelDescriptionConstants . INPUT_STREAM_INDEX , ModelDescriptionConstants . MIN ) . set ( 0 ) ; root . get ( ModelDescriptionConstants . REQUEST_PROPERTIES , ModelDescriptionConstants . INPUT_STREAM_INDEX , ModelDescriptionConstants . NILLABLE ) . set ( false ) ; root . get ( ModelDescriptionConstants . REPLY_PROPERTIES , ModelDescriptionConstants . TYPE ) . set ( BYTES ) ; root . get ( ModelDescriptionConstants . REPLY_PROPERTIES , ModelDescriptionConstants . DESCRIPTION ) . set ( bundle . getString ( "deployment.hash" ) ) ; root . get ( ModelDescriptionConstants . REPLY_PROPERTIES , ModelDescriptionConstants . MIN_LENGTH ) . set ( 20 ) ; root . get ( ModelDescriptionConstants . REPLY_PROPERTIES , ModelDescriptionConstants . MAX_LENGTH ) . set ( 20 ) ; root . get ( ModelDescriptionConstants . REPLY_PROPERTIES , ModelDescriptionConstants . NILLABLE ) . set ( false ) ; return root ; } public static final ModelNode getAddDeploymentOperation ( Locale locale , boolean includeEnabled ) { } public static final ModelNode getDeployDeploymentOperation ( Locale locale ) { } public static final ModelNode getReplaceDeploymentOperation ( Locale locale ) { } public static final ModelNode getFullReplaceDeploymentOperation ( Locale locale ) { } public static final ModelNode getUndeployDeploymentOperation ( Locale locale ) { } public static final ModelNode getRedeployDeploymentOperation ( Locale locale ) { } private static void getDeploymentContentParamDescription ( ModelNode root , ResourceBundle bundle ) { } private static ResourceBundle getResourceBundle ( Locale locale ) { } public static void main ( String [ ] args ) { } }

Fix:
root . get ( ModelDescriptionConstants . REQUEST_PROPERTIES , ModelDescriptionConstants . INPUT_STREAM_INDEX , ModelDescriptionConstants . TYPE ) . set ( INT ) ;