Skip to content
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

Clean Code for bundles/org.eclipse.equinox.registry #818

Merged
merged 1 commit into from
Jan 29, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class BufferedRandomInputStream extends InputStream {

private RandomAccessFile inputFile;
private String filePath; // Canonical path to the underlying file used for logging
private final String filePath; // Canonical path to the underlying file used for logging
private int buffer_size; // Current size of the buffer
private int buffer_pos; // Current read position in the buffer
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public abstract class Handle {
protected IObjectManager objectManager;

private int objectId;
private final int objectId;

public int getId() {
return objectId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Activator implements BundleActivator {
*/
private static final String STORAGE_DIR = "org.eclipse.core.runtime"; //$NON-NLS-1$

private Object masterRegistryKey = new Object();
private final Object masterRegistryKey = new Object();
private Object userRegistryKey = new Object();

private IExtensionRegistry defaultRegistry = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public final class ConfigurationElementAttribute {
*
* @see IConfigurationElement#getAttributeNames()
*/
private String name;
private final String name;

/**
* Attribute value.
*
* @see IConfigurationElement#getAttributeAsIs(String)
*/
private String value;
private final String value;

/**
* Constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ public final class ConfigurationElementDescription {
*
* @see IConfigurationElement#getName()
*/
private String name;
private final String name;

/**
* Attributes of the configuration element.
*
* @see IConfigurationElement#getAttribute(String)
*/
private ConfigurationElementAttribute[] attributes;
private final ConfigurationElementAttribute[] attributes;

/**
* String value to be stored in this configuration element.
*
* @see IConfigurationElement#getValue()
*/
private String value;
private final String value;

/**
* Children of the configuration element.
*
* @see IConfigurationElement#getChildren()
*/
private ConfigurationElementDescription[] children;
private final ConfigurationElementDescription[] children;

/**
* Constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public final class RegistryContributor implements IContributor {
* Actual ID of the contributor (e.g., "12"). IDs are expected to be unique in
* the workspace.
*/
private String actualContributorId;
private final String actualContributorId;

/**
* Actual name of the contributor (e.g., "org.eclipse.core.runtime.fragment").
*/
private String actualContributorName;
private final String actualContributorName;

/**
* ID associated with the entity "in charge" of the contributor (e.g., "1"). IDs
Expand Down
Loading