Skip to content

1527: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/StringUtils fix #1530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).

## 5.1.1

### Fixed

- java.lang.NoClassDefFoundError: org/codehaus/plexus/util/StringUtils [#1530](https://github.com/magento/magento2-phpstorm-plugin/pull/1530)

## 5.1.0

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import javax.swing.event.DocumentEvent;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import org.codehaus.plexus.util.StringUtils;
import org.apache.commons.lang.StringUtils;
import org.jetbrains.annotations.NotNull;

public class DataPatchNameAdapter extends DocumentAdapter {
Expand Down Expand Up @@ -73,15 +73,15 @@ private void updateDataPatchFileName(final String attributeCode) {
String fileName = "";

for (final String fileNamePart : SplitEavAttributeCodeUtil.execute(attributeCode)) {
fileName = String.join("", fileName, StringUtils.capitalise(fileNamePart));
fileName = String.join("", fileName, StringUtils.capitalize(fileNamePart));
}

dataPatchNameTextField.setText(
String.join(
"",
NAME_PREFIX,
fileName,
StringUtils.capitalise(entityType), NAME_SUFFIX
StringUtils.capitalize(entityType), NAME_SUFFIX
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import javax.swing.event.DocumentEvent;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import org.codehaus.plexus.util.StringUtils;
import org.apache.commons.lang.StringUtils;
import org.jetbrains.annotations.NotNull;

public class SourceModelNameAdapter extends DocumentAdapter {
Expand Down Expand Up @@ -46,7 +46,7 @@ private void updateSourceModelName(final String attributeCode) {
final StringBuilder sourceModelClassName = new StringBuilder();

for (final String codePart : SplitEavAttributeCodeUtil.execute(attributeCode)) {
sourceModelClassName.append(StringUtils.capitalise(codePart));
sourceModelClassName.append(StringUtils.capitalize(codePart));
}

sourceModelNameTexField.setText(sourceModelClassName.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void assertHasNoLinemarkerWithTooltipAndIcon(
= "Failed that documents not contains linemarker with the tooltip `%s`";

final List<LineMarkerInfo<?>> lineMarkers = getDocumentLineMarkers();
assertNotEmpty(lineMarkers);
for (final LineMarkerInfo lineMarkerInfo: lineMarkers) {
final String lineMarkerTooltip = lineMarkerInfo.getLineMarkerTooltip();
final Icon lineMarkerIcon = lineMarkerInfo.getIcon();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public class GraphQlResolverClassLinemarkerRegistrarTest extends LinemarkerFixtu
public void testWithValidSchemaResolver() {
myFixture.configureByFile(this.getFixturePath("schema.graphqls", "graphqls"));

assertHasLinemarkerWithTooltipAndIcon("Navigate to class", "nodes/class.svg");
assertHasLinemarkerWithTooltipAndIcon("Navigate to class", "Class");
}
}