Skip to content

Commit

Permalink
WFCORE-6768 Fix goofy WriteAttributeTranslationOperationStepHandler c…
Browse files Browse the repository at this point in the history
…lass name
  • Loading branch information
pferraro committed Apr 3, 2024
1 parent 25fb183 commit 832fd4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.wildfly.subsystem.resource.operation.AddResourceOperationStepHandler;
import org.wildfly.subsystem.resource.operation.ReadAttributeTranslationOperationStepHandler;
import org.wildfly.subsystem.resource.operation.RemoveResourceOperationStepHandler;
import org.wildfly.subsystem.resource.operation.WriteAttributeTranslationOperationStepHandlerHandler;
import org.wildfly.subsystem.resource.operation.WriteAttributeTranslationOperationStepHandler;

/**
* Registers add, remove, and write-attribute operation handlers and capabilities.
Expand Down Expand Up @@ -108,7 +108,7 @@ public void register(ManagementResourceRegistration registration) {
for (AttributeDefinition attribute : this.descriptor.getAttributes()) {
AttributeTranslation translation = this.descriptor.getAttributeTranslation(attribute);
if (translation != null) {
registration.registerReadWriteAttribute(attribute, new ReadAttributeTranslationOperationStepHandler(translation), new WriteAttributeTranslationOperationStepHandlerHandler(translation));
registration.registerReadWriteAttribute(attribute, new ReadAttributeTranslationOperationStepHandler(translation), new WriteAttributeTranslationOperationStepHandler(translation));
} else {
OperationStepHandler handler = this.descriptor.getWriteAttributeOperationStepHandler(attribute);
if (handler != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
* A {@value ModelDescriptionConstants#WRITE_ATTRIBUTE_OPERATION} operation handler that translates a value from another attribute
* @author Paul Ferraro
*/
public class WriteAttributeTranslationOperationStepHandlerHandler implements OperationStepHandler {
public class WriteAttributeTranslationOperationStepHandler implements OperationStepHandler {

private final AttributeTranslation translation;

public WriteAttributeTranslationOperationStepHandlerHandler(AttributeTranslation translation) {
public WriteAttributeTranslationOperationStepHandler(AttributeTranslation translation) {
this.translation = translation;
}

Expand Down

0 comments on commit 832fd4b

Please sign in to comment.