Commit cb4a95a
Replace Boolean.TRUE.toString().equals() with Boolean.parseBoolean()
Replace the verbose Boolean.TRUE.toString().equals(selected) pattern with
the simpler Boolean.parseBoolean(selected) in FeatureOptionsTab and
ProductExportWizardPage. Also simplify the ternary expressions:
selected == null ? true : Boolean.TRUE.toString().equals(selected)
becomes:
selected == null || Boolean.parseBoolean(selected)
This is consistent with adjacent ExportOptionsTab which already uses
Boolean.parseBoolean() for the same purpose.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b88b43b commit cb4a95a
File tree
2 files changed
+4
-4
lines changed- ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports
2 files changed
+4
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/ProductExportWizardPage.java
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments