ray.j.greenwell
a4d53dcbb8
Added getRange(), in int and float versions, and deprecated getInt(high, low),
...
because the parameter ordering and exclusive-of-low makes everybody cry.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2765 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-31 21:06:04 +00:00
ray.j.greenwell
d68ba4d9a1
Allow a reason to be specified on ReplacedBy. Annotate IntMap.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2764 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-31 17:41:41 +00:00
ray.j.greenwell
ac30065aab
Some more @ReplacedBy annotating.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2763 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-29 21:49:25 +00:00
samskivert
ed9f8502e0
No need for this kooky inner assignment.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2762 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-29 16:57:24 +00:00
ray.j.greenwell
aab57210e5
Use @ReplacedBy a few more places.
...
I'm going to start adding this more aggressively as I come across "old things".
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2761 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-26 17:57:47 +00:00
ray.j.greenwell
b168db60f4
Let's have this annotation be inherited.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2760 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-26 17:57:06 +00:00
samskivert
bfc97858b6
Patch from Dave to excise all remaining tabs.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2759 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-24 21:37:44 +00:00
charlie.groves
1eec46f02a
1.5 compatibility for yohoho
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2758 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-08 09:33:55 +00:00
samskivert
8d3dbe9346
If PERF_TRACK was set to false, start was never initialized, so compilation
...
would fail.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2757 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-07 19:19:19 +00:00
samskivert
6facd3d12f
1.7 javac is apparently more perceptive than ejc when it comes to warning about
...
raw type usage. I'm surprised that the Eclipse code hygienist failed to catch
these. Also had to be slightly more blatant in a few places where we're
subverting the generics type system because the 1.7 javac is less tolerant of
the fast and loose.
For future reference, that usually means first assigning a reference to a
wildcard and then casting that to what you want:
Foo<?> fc = someFooWithCrazyAssParameters;
@SuppressWarnings("unchecked") Foo<Object> fo = (Foo<Object>)fc;
instead of just:
@SuppressWarnings("unchecked") Foo<Object> fo =
(Foo<Object>)someFooWithCrazyAssParameters;
because javac won't let you do casts that are inconvertible and it's smarter
about what sort of generic types are convertible to one another.
Hopefully this future reference won't be needed because we won't be needing to
subvert the type system. But when reflection is involved, it's hard not to end
up doing a bit of the old Father Knows Best.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2756 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-07 18:10:10 +00:00
ray.j.greenwell
82083248a6
Typo. Caught by Charlie Groves. I shoulda just used his diff directly
...
but I omitted one thing and... well, look where it got me.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2755 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-05 01:02:27 +00:00
ray.j.greenwell
c5203171f4
Also via Charlie, noticed by Eclipse: naming consistency with other methods.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2754 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-04 21:39:06 +00:00
ray.j.greenwell
51c6b89c8e
Via Charlie Groves, some changes flagged by Eclipse.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2753 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-04 21:38:15 +00:00
ray.j.greenwell
8a371eebf9
Since I ended up naming the little protected helper method "toIntFlag",
...
let's have it go ahead and return a flag rather than the bit position.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2752 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-02 05:38:35 +00:00
ray.j.greenwell
b4c8b3fda8
Added setToInt() and intToSet(), for turning a Set<ByteEnum> into an
...
encoded form for storing in a database or otherwise persisting into an
int.
It would be snazzy if Depot could do this automatically if a PersistentRecord
contained a Set<E extends Enum<E> & ByteEnum>.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2751 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-03-01 20:17:26 +00:00
samskivert
1a4091b49a
Added a TerseLogFormatter for those times when you don't want to spend 80% of
...
your terminal width on incidentals. Factored some shared bits into
FormatterUtil.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2750 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-19 18:56:42 +00:00
ray.j.greenwell
383aaa58f8
From Michael Thomas: reinstate blocking of super.finalize().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2749 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-17 21:22:24 +00:00
ray.j.greenwell
a6beaab29a
Via Nathan Curtis: allow the time to be set directly on a builder that
...
was constructed with a specific zone and locale.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2748 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-12 01:32:22 +00:00
ray.j.greenwell
e6970e1c91
Via Nathan Curtis: A method on Builder to set the TimeZone.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2747 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-11 22:03:26 +00:00
samskivert
acb2fffb0a
Beans frank.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2746 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 16:26:11 +00:00
samskivert
0468902779
Widened, untabified, added equals() and hashCode() implementation to
...
SynchronizedIntSet.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2745 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 01:17:23 +00:00
samskivert
d4678372be
This must be some leftover C-ism because (x & 0xffffffff) == x for int
...
variables.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2744 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 01:09:39 +00:00
samskivert
82a664c879
Use unsigned shift to avoid breakage on overflow.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2743 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 01:03:32 +00:00
samskivert
fc638663eb
Untabify.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2742 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 01:01:47 +00:00
samskivert
ad3736e055
Be more specific about what we catch.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2741 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 01:01:11 +00:00
samskivert
b4c32aeb84
Simplify, cope with nulls.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2740 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:59:54 +00:00
samskivert
420df91056
More FindBugs inspired hygeine.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2739 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:53:15 +00:00
samskivert
9d9b5a5649
We don't actually want an inner class here with its outer this pointer and
...
ability to implicitly call methods on its outer class. We just need a static
wrapper.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2738 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:48:14 +00:00
samskivert
726aec37ed
We don't use or need the integer codes in our policy and justification constant
...
objects.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2737 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:42:22 +00:00
samskivert
4da25bc39b
Use a string builder.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2736 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:40:16 +00:00
samskivert
fa938b847f
Small rearrangement.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2735 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:40:07 +00:00
samskivert
0aeab762aa
Untabified. Made some string building use StringBuilder.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2734 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-10 00:39:37 +00:00
samskivert
b8b9a0d70a
Nixed some manual boxing.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2733 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 22:46:51 +00:00
samskivert
3339b6707e
These inner classes should be static. In the case of IntIntMap this was a big
...
fat waste of four bytes per map entry. Whoops.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2732 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 22:40:49 +00:00
samskivert
f44c51555e
NOOP--.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2731 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 22:38:29 +00:00
samskivert
23d8fc9876
Fun fact: SimpleDateFormat is not thread safe (apparently all DateFormat
...
implementations are noted in the docs as not thread safe). I specifically
verified that parse() mutates internal fields.
Since ParameterUtil is *designed* to be called by servlets which naturally run
on multiple threads, we need to be careful here to avoid getting bogus results.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2730 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 22:35:56 +00:00
samskivert
c9598b3110
More finality.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2729 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 21:29:01 +00:00
samskivert
ddd0b0b72a
Untabifying, widening, nixed wacky client version parsing.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2728 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 21:22:40 +00:00
samskivert
053d4c6196
This can be static final as well.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2727 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 21:16:52 +00:00
samskivert
28a48351fa
Introduce some finality.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2726 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 21:16:12 +00:00
samskivert
9cf8d22e1d
Unwrap, use Map.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2725 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 21:15:50 +00:00
samskivert
2f912d7068
ClassLoader creation apparently must be run as a privileged action so that if
...
unprivileged code calls into privileged code, the security manager "does the
right thing" (I'd explain this better if I understood it better).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2724 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 21:08:37 +00:00
samskivert
7829ca78dc
Properly close streams.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2723 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:57:07 +00:00
samskivert
033c67d81b
Make sure we close our stream.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2722 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:47:54 +00:00
samskivert
8be87e9412
More Comparable reduction. Made node final in NodeInfo.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2721 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:45:39 +00:00
samskivert
d5de5dc997
Comparable -> Comparator. private -> protected.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2720 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:39:47 +00:00
samskivert
add2871199
To make something Comparable implies that you could do something like stick it
...
into a collection that keeps things sorted. Doing so without implementing
hashCode() and equals() is a recipe for breakage. Instead we'll just define a
comparator that does the one sorting we need, and use that, rather than give
the wrong impression.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2719 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:32:45 +00:00
samskivert
cf7f3a582c
We don't need to manually finalize things here.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2718 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:28:17 +00:00
samskivert
43a06a8acd
Ignoring exceptions is naughty.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2717 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:26:40 +00:00
samskivert
654596a619
Added instanceof checks to equals().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2716 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-02-09 20:25:01 +00:00