Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import org.eclipse.wb.internal.core.utils.StringUtilities;
import org.eclipse.wb.internal.core.utils.check.Assert;

import org.apache.commons.lang3.StringUtils;

/**
* Describes category of {@link Property}.
*
Expand Down Expand Up @@ -109,7 +107,7 @@ public static PropertyCategory get(String text, PropertyCategory defaultCategory
return HIDDEN;
}
// system
if (StringUtils.startsWith(text, "system(")) {
if (text != null && text.startsWith("system(")) {
String systemText = text;
systemText = StringUtilities.removeStart(systemText, "system(");
systemText = StringUtilities.removeEnd(systemText, ")");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011 Google, Inc.
* Copyright (c) 2011, 2026 Google, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down Expand Up @@ -179,7 +179,7 @@ private static String prepareLabelsFields(List<String> resultLabels,
line);
}
// prepare "label" and "field" code
int lastSpaceIndex = StringUtils.lastIndexOf(line, " ");
int lastSpaceIndex = line.lastIndexOf(" ");
String label = line.substring(0, lastSpaceIndex).trim();
String fieldCode = line.substring(lastSpaceIndex).trim();
// convert "fieldCode" into IField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2025 Google, Inc. and others.
* Copyright (c) 2011, 2026 Google, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -22,8 +22,6 @@
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.graphics.Image;

import org.apache.commons.lang3.StringUtils;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
Expand Down Expand Up @@ -232,7 +230,7 @@ public void endVisit(ObjectInfo objectInfo) throws Exception {
private static void fixJLabelWithHTML(Component component) throws Exception {
if (component instanceof JLabel label) {
String text = label.getText();
if (StringUtils.containsIgnoreCase(text, "<html>")) {
if (text != null && text.toLowerCase().contains("<html>")) {
SwingImageUtils.createComponentShotAWT(component);
}
}
Expand Down
Loading