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

minor javadoc cleanup and access modifier fixes #16

Merged
merged 2 commits into from
Jan 25, 2016
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 @@ -87,8 +87,8 @@
* <p>
* <li><strong>Sub-Source:</strong> A representation of the contents of a sub-range of another
* {@link Source}.<br>
* See @link {@link Source#subSource(Source, int, int)}<br>
* See @link {@link Source#subSource(Source, int)}</li>
* See {@link Source#subSource(Source, int, int)}<br>
* See {@link Source#subSource(Source, int)}</li>
* <p>
* <li><strong>AppendableSource:</strong> Literal contents are provided by the client,
* incrementally, after the instance is created.<br>
Expand All @@ -112,7 +112,7 @@ public abstract class Source {
private static final Logger LOG = Logger.getLogger(Source.class.getName());

// TODO (mlvdv) consider canonicalizing and reusing SourceSection instances
// TOOD (mlvdv) connect SourceSections into a spatial tree for fast geometric lookup
// TODO (mlvdv) connect SourceSections into a spatial tree for fast geometric lookup

/**
* Index of all named sources.
Expand Down Expand Up @@ -411,8 +411,8 @@ private Source() {

/**
* Returns a short version of the name of the resource holding a guest language program (as
* described in @getName). For example, this could be just the name of the file, rather than a
* full path.
* described in {@link #getName()}). For example, this could be just the name of the file,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know.

* rather than a full path.
*
* @return the short name of the guest language program
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import static com.oracle.truffle.object.basic.BasicLocations.OBJECT_SIZE;
import com.oracle.truffle.object.basic.BasicLocations.ObjectArrayLocation;

public abstract class BasicAllocator extends ShapeImpl.BaseAllocator {
abstract class BasicAllocator extends ShapeImpl.BaseAllocator {

public BasicAllocator(LayoutImpl layout) {
super(layout);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public BaseAllocator createAllocator(LayoutImpl layout) {
return new DefaultAllocatorImpl(layout);
}

public static class DefaultAllocatorImpl extends BasicAllocator {
static class DefaultAllocatorImpl extends BasicAllocator {
protected DefaultAllocatorImpl(LayoutImpl layout) {
super(layout);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class DynamicObjectBasic extends DynamicObjectImpl {
private Object[] objext;
private long[] primext;

public DynamicObjectBasic(Shape shape) {
protected DynamicObjectBasic(Shape shape) {
super(shape);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
import com.oracle.truffle.object.Transition;

public final class ShapeBasic extends ShapeImpl {
public ShapeBasic(Layout layout, Object sharedData, ObjectType objectType, int id) {
ShapeBasic(Layout layout, Object sharedData, ObjectType objectType, int id) {
super(layout, objectType, sharedData, id);
}

public ShapeBasic(Layout layout, Object sharedData, ShapeImpl parent, ObjectType objectType, PropertyMap propertyMap, Transition transition, Allocator allocator, int id) {
ShapeBasic(Layout layout, Object sharedData, ShapeImpl parent, ObjectType objectType, PropertyMap propertyMap, Transition transition, Allocator allocator, int id) {
super(layout, parent, objectType, sharedData, propertyMap, transition, allocator, id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class DynamicObjectImpl extends DynamicObject implements Cloneab

public static final DebugCounter reshapeCount = DebugCounter.create("Reshape count");

public DynamicObjectImpl(Shape shape) {
protected DynamicObjectImpl(Shape shape) {
assert shape instanceof ShapeImpl;
initialize(shape);
setShape(shape);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

import static com.oracle.truffle.api.object.Layout.OPTION_PREFIX;

public class ObjectStorageOptions {
public final class ObjectStorageOptions {
private ObjectStorageOptions() {
}

// Shape configuration
/** Primitive location switch. */
public static boolean PrimitiveLocations = booleanOption(OPTION_PREFIX + "PrimitiveLocations", true);
Expand Down