summaryrefslogtreecommitdiff
path: root/java/util
Commit message (Collapse)AuthorAgeFilesLines
* ZipEntry tweaks to improve performance.Andrew John Hughes2008-09-101-70/+96
| | | | | | | | | | | | | | | | | 2008-02-07 Ian Rogers <ian.rogers@manchester.ac.uk> * java/util/zip/ZipEntry.java: Use byte fields instead of integer fields, store the time as well as the DOS time and don't retain a global Calendar instance. (setDOSTime(int)): Set KNOWN_DOSTIME instead of KNOWN_TIME, and unset KNOWN_TIME. (getDOSTime()): Compute DOS time from UNIX time only when needed. (clone()): Provide cloning via the ZipEntry constructor where possible. (setTime(long)): Don't compute DOS time at this point. (getCalendar()): Removed.
* Reset the append position when resetting a Matcher instance.Andrew John Hughes2008-08-211-0/+1
| | | | | | | | | 2008-08-23 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/regex/Matcher.java: (reset()): Reset append position so we don't try and append to the end of the old input.
* Fix setCurrency in DecimalFormat.Andrew John Hughes2008-08-171-1/+1
| | | | | | | | | | | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/31895: * java/text/DecimalFormat.java: (setCurrency(Currency)): Update prefixes and suffixes when currency changes. * java/text/DecimalFormatSymbols.java: (DecimalFormatSymbols(Locale)): Set locale earlier so it can be used by setCurrency(Currency). (setCurrency(Currency)): Set the symbol correctly using the locale of the instance. * java/util/Currency.java: Throw error instead of just printing a message.
* Add initial implementation of java.util.Scanner.Andrew John Hughes2008-08-161-0/+2223
| | | | | | | | | | | | | | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> * AUTHORS: Added Laszlo. 2008-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/30436: * java/util/Scanner.java: Fix package to be java.util and correct indentation. 2007-07-25 Laszlo Andras Hernadi <e0327023@student.tuwien.ac.at> PR classpath/30436: * java/util/Scanner.java: Initial implementation.
* Implement java.util.regex.Matcher#toMatchResult()Andrew John Hughes2008-08-161-1/+17
| | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/regex/Matcher.java: (toMatchResult()): Implemented.
* Use weeks.properties instead of bundles for week data.Andrew John Hughes2008-07-071-3/+29
| | | | | | | | | | | | 2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Calendar.java: (Calendar(TimeZone,Locale)): Use weeks.properties instead of LocaleInformation bundles. * resource/java/util/iso4217.properties: Updated with new supplementgen header. * resource/java/util/weeks.properties: New resource file.
* Implement cache clearing for java.util.ResourceBundleAndrew John Hughes2008-07-061-3/+54
| | | | | | | | | 2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/ResourceBundle.java, (BundleKey.toString()): Implemented. (clearCache()): Implemented. (clearCache(ClassLoader)): Implemented.
* 2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-07-061-3/+4
| | | | | * java/util/ResourceBundle.java: Fix generic warnings.
* Add support for non-ISO-8859-1 property files.Andrew John Hughes2008-07-062-7/+42
| | | | | | | | | | 2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Properties.java: (load(Reader)): Implemented. (load(InputStream)): Fixed to use load(Reader). * java/util/PropertyResourceBundle.java: (PropertyResourceBundle(Reader)): Implemented.
* 2008-05-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-121-7/+259
| | | | | | | | | | | | | | | | | | | | | | | * java/util/regex/Matcher.java: (regionStart): New variable. (regionEnd): Likewise. (transparentBounds): Likewise. (anchoringBounds): Likewise. (Matcher()): Initialise new variables. (find()): Alter to use new settings. (find(int)): Likewise. (lookingAt()): Likewise. (matches()): Likewise. (reset()): Reset region. (reset(CharSequence)): Documented. (toString()): Include new variables. (region(int,int)): Implemented. (regionStart()): Likewise. (regionEnd()): Likewise. (hasTransparentBounds()): Likewise. (useTransparentBounds(boolean)): Likewise. (hasAnchoringBounds()): Likewise. (useAnchoringBounds(boolean)): Likewise.
* 2008-05-07 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-071-4/+2
| | | | | | | | | | | | | Add generics to these classes. * gnu/java/util/regex/RETokenOneOf.java: Use an ArrayList and a Deque instead of a Vector and a Stack to remove unnecessary synchronisation. * gnu/java/util/regex/RETokenRepeated.java: Replace custom FindMatchControlStack class with a generic Deque. * java/util/regex/Pattern.java: Use a generic ArrayList instance.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0612-23/+48
| | | | | | | | | | | | | | | | | PR classpath/21869 * java/util/AbstractCollection.java, * java/util/BitSet.java, * java/util/Collections.java, * java/util/Locale.java, * java/util/ResourceBundle.java, * java/util/TimeZone.java, * java/util/logging/FileHandler.java, * java/util/logging/Logger.java, * java/util/logging/SimpleFormatter.java, * java/util/logging/XMLFormatter.java, * java/util/prefs/AbstractPreferences.java, * java/util/regex/PatternSyntaxException.java: Swap use of StringBuffer for CPStringBuilder.
* 2008-04-26 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-04-262-6/+34
| | | | | | | | | | | * java/util/ArrayList (raiseBoundsError): new method to raise bound exceptions in uncommon case. (checkBoundInclusive): use raiseBoundsError. (checkBoundExclusive): likewise. * java/util/ArrayList (raiseBoundsError): new method to raise bound exceptions in uncommon case. (checkBoundInclusive): use raiseBoundsError. (checkBoundExclusive): likewise.
* 2008-04-18 Mario Torre <neugens@aicas.com>Mario Torre2008-04-181-828/+796
| | | | | | | PR classpath/35974 * java/util/logging/Logger.java: fix a deadlock and reformat code. Now all the methods of the class get a lock on a static lock, this avoids a lock when getLogger and log are used concurrently.
* 2008-03-27 Mario Torre <neugens@aicas.com>Mario Torre2008-03-271-2/+2
| | | | | | | | | | | * gnu/xml/stream/SAXParser.java (getProperty): throw SAXNotRecognizedException instead of SAXNotSupportedException after fall through all known properties. * javax/xml/namespace/QName.java (valueOf): throw IllegalArgumentException if string is null. * java/util/concurrent/CopyOnWriteArrayList.java (lastIndexOf): fixed indentation. (indexOf): likewise.
* 2008-03-26 Mario Torre <neugens@aicas.com>Mario Torre2008-03-261-180/+232
| | | | | | | | | | | | | | | | | | | * java/util/concurrent/CopyOnWriteArrayList.java (SubList.set): (SubList.clear): new method. (SubList.checkMod): fix indentation. (SubList.checkBoundsInclusive): likewise. (SubList.checkBoundsExclusive): likewise. (SubList): added synchronization. Now throw IndexOutOfBoundsException instead of IllegalArgumentException when index are out of range. (SubList.size): added synchronization. (SubList.get): likewise. (SubList.listIterator): fixed indentation. (SubList.set): added synchronization. Update the state of the storage after modification. (SubList.add): likewise. (SubList.remove): likewise. (SubList.addAll): likewise.
* 2008-03-26 Mario Torre <neugens@aicas.com>Mario Torre2008-03-261-5/+14
| | | | | | * java/util/concurrent/CopyOnWriteArrayList.java (equals): removed useless local variable. (hashCode): new method.
* 2008-03-25 Mario Torre <neugens@aicas.com>Mario Torre2008-03-251-2/+40
| | | | | | | * java/util/concurrent/CopyOnWriteArrayList.java (clone): clone method in CopyOnWriteArrayList should just do a shallow copy. Fixed. (equals): new method, override from base class. (toString): likewise.
* 2008-03-16 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-169-25/+41
| | | | | | | | | | | | | | | | | | | | | | | | | PR classpath/21869 * java/security/AlgorithmParameterGenerator.java, * java/security/AlgorithmParameters.java, * java/security/KeyFactory.java, * java/security/KeyPairGenerator.java, * java/security/MessageDigest.java, * java/security/SecureRandom.java, * java/security/Signature.java, * java/security/cert/CertPathBuilder.java, * java/security/cert/CertPathValidator.java, * java/security/cert/CertStore.java, * java/text/SimpleDateFormat.java, * java/util/AbstractMap.java, * java/util/Arrays.java, * java/util/Calendar.java, * java/util/Date.java, * java/util/Formatter.java, * java/util/Hashtable.java, * java/util/Properties.java, * java/util/TreeMap.java, * java/util/regex/Matcher.java: Use CPStringBuilder in preference to StringBuilder.
* 2008-03-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-125-17/+540
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/beans/beancontext/BeanContextServicesSupport.java: (BCSSProxyServiceProvider(BeanContextServiceProvider)): Add package-private constructor. * java/lang/StringBuffer.java: (ensureCapacity_unsynchronized(int)): Make package-private. * java/rmi/activation/Activatable.java: (export(ActivationID, Remote, int, RMIServerSocketFactory)): Make private. (makeId(ActivationID)): Likewise. * java/security/MessageDigest.java: (update(ByteBuffer)): Make final. * java/security/cert/PolicyQualifierInfo.java: (getPolicyQualifierId()): Likewise. (getEncoded()): Likewise. (getPolicyQualifier()): Likewise. * java/text/DateFormat.java: (ISO_YEAR_FIELD): Removed. (LOCALIZED_DAY_OF_WEEK_FIELD): Likewise. (EXTENDED_YEAR_FIELD): Likewise. (MODIFIED_JULIAN_DAY_FIELD): Likewise. (MILLISECOND_IN_DAY_FIELD): Likewise. (RFC822_TIMEZONE_FIELD): Likewise. (Field.ISO_YEAR_FIELD): Likewise. (Field.LOCALIZED_DAY_OF_WEEK_FIELD): Likewise. (Field.EXTENDED_YEAR_FIELD): Likewise. (Field.MODIFIED_JULIAN_DAY_FIELD): Likewise. (Field.MILLISECOND_IN_DAY_FIELD): Likewise. (Field.RFC822_TIMEZONE_FIELD): Likewise. * java/text/DecimalFormat.java: (format(Object,StringBuffer,FieldPosition)): Make final. * java/text/Format.java: (Format()): Make protected. * java/text/NumberFormat.java: (NumberFormat()): Likewise. * java/text/SimpleDateFormat.java: Remove code using RFC822_TIMEZONE_FIELD. * java/util/Stack.java: Use array of Objects rather than instances of T. * java/util/Vector.java: Likewise. * java/util/concurrent/CopyOnWriteArrayList.java: Don't extend AbstractList. (containsAll(Collection)): Implemented. (listIterator()): Likewise. (subList(int,int)): Likewise. * java/util/zip/Deflater.java: (getTotalIn()): Remove deprecation. (getTotalOut()): Likewise. * java/util/zip/Inflater.java, (getTotalIn()): Likewise. (getTotalOut()): Likewise.
* 2008-02-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-011-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/classpath/CPStringBuilder.java: Removed. * gnu/java/awt/font/OpenTypeFontPeer.java, * gnu/java/awt/font/autofit/Edge.java, * gnu/java/awt/font/autofit/LatinBlue.java, * gnu/java/awt/font/autofit/Segment.java, * gnu/java/awt/font/autofit/Width.java, * gnu/java/awt/font/opentype/truetype/Point.java, * gnu/java/awt/java2d/ActiveEdges.java, * gnu/java/awt/peer/GnomeDesktopPeer.java, * gnu/java/awt/peer/KDEDesktopPeer.java, * gnu/java/awt/peer/x/XFontPeer.java: Use CPStringBuilder. * gnu/java/lang/CPStringBuilder.java: Moved from gnu.classpath. * gnu/java/lang/ClassHelper.java, * gnu/java/lang/reflect/GenericSignatureParser.java, * gnu/java/lang/reflect/TypeSignature.java, * gnu/java/net/protocol/http/ChunkedInputStream.java, * gnu/java/net/protocol/http/Cookie.java, * gnu/java/net/protocol/http/HTTPConnection.java, * gnu/java/net/protocol/http/Headers.java, * gnu/java/net/protocol/http/Request.java: Use CPStringBuilder. * java/lang/reflect/Modifier.java: Corrected import to point to correct package. * java/util/Formatter.java: Use CPStringBuilder. * vm/reference/java/lang/reflect/Constructor.java, * vm/reference/java/lang/reflect/Field.java, * vm/reference/java/lang/reflect/Method.java: Corrected import to point to correct package.
* 2008-02-28 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-281-1/+1
| | | | | | | | | | | | | | * gnu/java/util/EmptyEnumeration.java: Add generic type parameter. * java/lang/ClassLoader.java: Use EmptyEnumeration with type parameter. * java/util/zip/ZipFile.java: Likewise. * javax/swing/text/html/StyleSheet.java, * javax/swing/text/html/ViewAttributeSet.java: Add generics. * javax/swing/tree/DefaultMutableTreeNode.java: Use EmptyEnumeration with type parameter.
* 2008-02-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-261-24/+28
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Removed again. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Revert to pre-release versions.
* 2008-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-221-28/+24
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Re-added. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Regress to 0.96 versions.
* 2008-02-05 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-02-054-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/lang/reflect/TypeSignature.java * java/io/BufferedReader.java * java/io/DataInputStream.java * java/lang/StackTraceElement.java * java/lang/Throwable.java * java/lang/reflect/Proxy.java * java/net/URI.java * java/net/URLClassLoader.java * java/net/URLEncoder.java * java/text/SimpleDateFormat.java * java/util/AbstractMap.java * java/util/Calendar.java * java/util/Date.java * java/util/Hashtable.java Use StringBuilder in preference to StringBuffer * java/util/Calendar.java * java/util/Hashtable.java Make private fields that can be final, final * java/net/URI.java Avoid creating Integer objects for the sake of comparison * java/lang/reflect/Proxy.java * java/text/SimpleDateFormat.java Swap use of "new Character/Integer" to use of valueOf methods
* 2008-01-27 Bernhard Fischer <rep.dot.nop@gmail.com>Tom Tromey2008-01-281-1/+1
| | | | | | * java/util/SimpleTimeZone.java (SimpleTimeZone): Fix typo in comment. * gnu/CORBA/GIOP/v1_2/RequestHeader.java (RequestHeader): Fix typo in exception message.
* 2008-01-09 Stefan Huehner <stefan@huehner.org>Andrew John Hughes2008-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/java2d/J2dBenchmark.java, * gnu/CORBA/OrbFocused.java, * gnu/CORBA/CDR/HeadlessInput.java, * gnu/java/awt/peer/gtk/CairoGraphics2D.java, * gnu/java/awt/peer/gtk/GtkFramePeer.java, * gnu/java/awt/peer/qt/QtMenuPeer.java, * gnu/java/nio/FileChannelImpl.java, * gnu/java/nio/SocketChannelSelectionKeyImpl.java, * gnu/java/security/Engine.java, * gnu/javax/imageio/jpeg/JPEGComponent.java, * gnu/javax/imageio/jpeg/JPEGDecoder.java, * gnu/javax/imageio/jpeg/JPEGFrame.java, * gnu/javax/print/PrinterDialog.java, * gnu/javax/security/auth/Password.java, * gnu/javax/swing/text/html/parser/support/Parser.java, * gnu/javax/swing/text/html/parser/support/parameterDefaulter.java, * gnu/xml/pipeline/DomConsumer.java, * java/awt/AWTKeyStroke.java, * java/awt/DefaultKeyboardFocusManager.java, * java/awt/GridBagLayout.java, * java/awt/dnd/DragGestureRecognizer.java, * java/awt/geom/Arc2D.java, * java/awt/geom/CubicCurve2D.java, * java/awt/geom/QuadCurve2D.java, * java/awt/im/InputContext.java, * java/awt/image/AffineTransformOp.java, * java/beans/Encoder.java, * java/io/ObjectInputStream.java, * java/io/ObjectStreamClass.java, * java/net/ResolverCache.java, * java/nio/charset/Charset.java, * java/security/SecureClassLoader.java, * java/text/MessageFormat.java, * java/util/jar/Manifest.java, * javax/accessibility/AccessibleRelationSet.java, * javax/imageio/ImageReader.java, * javax/imageio/metadata/IIOMetadataNode.java, * javax/print/attribute/standard/MediaSize.java, * javax/print/attribute/standard/PrinterStateReasons.java, * javax/swing/JTree.java, * javax/swing/table/DefaultTableColumnModel.java, * javax/swing/text/html/MinimalHTMLWriter.java, * javax/swing/text/html/parser/DTD.java, * javax/swing/tree/DefaultMutableTreeNode.java, * javax/swing/undo/UndoManager.java, * org/omg/CosNaming/NamingContextExtPOA.java, * org/omg/CosNaming/NamingContextPOA.java, * org/omg/CosNaming/_NamingContextExtImplBase.java, * org/omg/CosNaming/_NamingContextImplBase.java, * tools/gnu/classpath/tools/appletviewer/CommonAppletStub.java: Remove unneeded casts
* 2008-01-04 Stefan Huehner <stefan@huehner.org>Andrew John Hughes2008-01-073-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/CORBA/BigDecimalHelper.java, * gnu/CORBA/CDR/AbstractCdrInput.java, * gnu/CORBA/CDR/AbstractCdrOutput.java, * gnu/CORBA/CDR/HeadlessInput.java, * gnu/CORBA/CDR/gnuRuntime.java, * gnu/CORBA/Connected_objects.java, * gnu/CORBA/GIOP/CancelHeader.java, * gnu/CORBA/GIOP/v1_0/CancelHeader.java, * gnu/CORBA/IOR.java, * gnu/CORBA/Interceptor/Registrator.java, * gnu/CORBA/IorDelegate.java, * gnu/CORBA/NamingService/NameTransformer.java, * gnu/CORBA/ObjectCreator.java, * gnu/CORBA/OrbFunctional.java, * gnu/CORBA/Poa/AOM.java, * gnu/CORBA/Poa/gnuPOA.java, * gnu/CORBA/Poa/gnuPOAManager.java, * gnu/CORBA/Poa/gnuServantObject.java, * gnu/CORBA/typecodes/FixedTypeCode.java, * gnu/CORBA/typecodes/RecursiveTypeCode.java, * gnu/java/awt/AWTUtilities.java, * gnu/java/awt/peer/gtk/CairoGraphics2D.java, * gnu/java/awt/peer/gtk/CairoSurface.java, * gnu/java/awt/peer/swing/SwingMenuBarPeer.java, * gnu/java/text/AttributedFormatBuffer.java, * gnu/java/util/regex/REToken.java, * gnu/javax/imageio/gif/GIFFile.java, * gnu/javax/imageio/png/PNGDecoder.java, * gnu/javax/management/Server.java, * gnu/javax/naming/giop/ContextContinuation.java, * gnu/javax/naming/jndi/url/rmi/ContextContinuation.java, * gnu/javax/swing/text/html/css/Selector.java, * gnu/javax/swing/text/html/parser/models/node.java, * gnu/javax/swing/text/html/parser/support/Parser.java, * gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java, * gnu/javax/swing/text/html/parser/support/textPreProcessor.java, * gnu/xml/util/Resolver.java, * java/awt/image/AreaAveragingScaleFilter.java, * java/beans/Beans.java, * java/beans/XMLDecoder.java, * java/beans/beancontext/BeanContextServicesSupport.java, * java/beans/beancontext/BeanContextSupport.java, * java/io/CharArrayWriter.java, * java/lang/System.java, * java/net/ResolverCache.java, * java/util/Calendar.java, * java/util/Collections.java, * java/util/Formatter.java, * javax/accessibility/AccessibleEditableText.java, * javax/imageio/ImageReader.java, * javax/imageio/ImageTypeSpecifier.java, * javax/imageio/ImageWriter.java, * javax/imageio/spi/ServiceRegistry.java, * javax/imageio/stream/ImageInputStream.java, * javax/management/MBeanPermission.java, * javax/rmi/CORBA/PortableRemoteObjectDelegate.java, * javax/rmi/CORBA/Util.java, * javax/rmi/CORBA/UtilDelegate.java, * javax/rmi/CORBA/ValueHandler.java, * javax/rmi/PortableRemoteObject.java, * org/ietf/jgss/GSSContext.java, * tools/gnu/classpath/tools/appletviewer/PluginAppletWindow.java, * tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java, * tools/gnu/classpath/tools/appletviewer/TagParser.java, * vm/reference/gnu/java/nio/VMChannel.java: Correct javadoc to match the functions' parameters * gnu/java/awt/peer/swing/SwingTextFieldPeer.java: Rename start_pos parameter to startPos to conform to style.
* 2007-11-24 Mario Torre <neugens@limasoftware.net>Mario Torre2007-11-241-26/+53
| | | | | | | | | | | | | * java/util/concurrent/CopyOnWriteArrayList.java: (addAll): fix implementation, now add elements in the correct position. (addAllAbsent): fixed typos (whoops!). (remove(int)): fixed range in arraycopy that was causing for incorrect values to be inserted in the list. Refactored to give variables better names. (remove(Object)): refactored to give better names to variable. (listIterator): fix to set the starting index. (listIterator.previous): fix to decrement element position before returning the previous element in the iterator.
* 2007-11-23 Mario Torre <neugens@limasoftware.net>Mario Torre2007-11-231-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: class removed. * gnu/classpath/toolkit/DefaultDaemonThreadFactory.java: new file. * java/util/prefs/AbstractPreferences.java: (fire(PreferenceChangeEvent)): Use DefaultDaemonThreadFactory and Executors.newSingleThreadExecutor instead of EventDispatcher. Import statement refactored accordingly. Also refactored to use 1.5 enhanced for loop and generics. (fire(NodeChangeEvent, boolean)): likewise. * gnu/java/util/prefs/GConfBasedPreferences.java (childSpi): removed startWatchingNode call. * gnu/java/util/prefs/gconf/GConfNativePeer.java: (GConfNativePeer): removed use of semaphore. (gconf_all_nodes): method name shortened, renamed from gconf_client_all_nodes (removed client_ from method signature) and declared synchronized. (gconf_suggest_sync): likewise. (gconf_get_string): likewise. (gconf_unescape_key): likewise. (gconf_set_string): likewise. (gconf_escape_key): likewise. (gconf_all_keys): likewise. (gconf_dir_exists): likewise. (getKeys): refactored to use new native method name. (getKey): likewise. (setString): likewise. (getChildrenNodes): likewise. (unset): likewise. (suggestSync): likewise. (finalize): likewise. (nodeExist): likewise. (gconf_client_add_dir): removed, not needed anymore. (gconf_client_remove_dir): likewise. (startWatchingNode): likewise. (stopWatchingNode): likewise. * native/jni/conf-peer/GConfNativePeer.c: All native methods renamed to match changes in GConfNativePeer.java Now use GConfEngine instead of GConfClient. Removed gdk_thread_enter/leave locking from all methods. (Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1add_1dir): removed. (Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1dir_1exists): likewise. * include/gnu_java_util_prefs_gconf_GConfNativePeer.h: regenerated.
* 2007-11-23 Mario Torre <neugens@limasoftware.net>Mario Torre2007-11-231-6/+328
| | | | | | | | | | | | | | * java/util/concurrent/CopyOnWriteArrayList.java: Added javadoc. (serialVersionUID): new field. (iterator): new method, override from base class. (remove): likewise. (listIterator): likewise. (removeAll): likewise. (retainAll): likewise. (contains): fixed typo in javadoc. (addIfAbsent): added javadoc. (addAllAbsent): Rewrite to improve performance. Also add javadoc.
* Make private fields that can be final, final.Ian Rogers2007-11-231-6/+3
|
* 2007-11-08 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2007-11-081-6/+5
| | | | | * java/util/Locale.java (Locale): Always intern strings.
* 2007-10-07 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-10-071-1/+1
| | | | | | | PR classpath/23854: * java/util/zip/ZipEntry.java: (parseExtra()): Pass time to setTime in milliseconds rather than seconds by multiplying by 1000.
* 2007-08-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-08-211-2/+168
| | | | | | | * java/util/EnumSet.java: Documented. (complementOf(EnumSet)): Fixed to flip only the bits used by the enumset.
* * java/util/LinkedHashSet.java (LinkedHashSet): Fix typo.Tom Tromey2007-08-151-2/+2
|
* 2007-07-31 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-07-311-201/+188
| | | | | | | | | | | | | PR 32844 * java/util/EnumSet.java: Made class abstract per API spec. (size, iterator, add, addAll, clear, contains, containsAll, remove, removeAll, retainAll) Moved into an anonymous inner class in of(T). (allOf, noneOf, copyOf, of, range) Made more implementation independent. (of(T)) return an instance of an anonymous class implementing EmptySet.
* PR java/32862:libgcj-import-20070727Tom Tromey2007-07-241-4/+15
| | | | | * java/util/EnumMap.java (get): Special case emptySlot. (clone): Rewrote.
* 2007-06-22 Tania Bento <tbento@redhat.com>Tania Bento2007-06-221-0/+5
| | | | | | | * java/util/Currency.java: (getInstance (Locale)): Check that the country of the locale given is valid. If it is not, throw an IllegalArgumentException.
* 2007-05-23 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2007-05-231-1/+2
| | | | | * java/util/Arrays.java (copyOfRange(T,int,int)): Fixed to instantiate right array type.
* 2007-04-23 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2007-04-231-7/+7
| | | | | PR classpath/31646: * java/util/Arrays.java (qsort): Corrected initial median calculation.
* 2007-04-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-04-061-1/+1
| | | | | * java/util/Hashtable.java: (putAllInternal(Map)): Remove redundant semi-colon.
* 2007-04-06 Mark Wielaard <mark@klomp.org>Mark Wielaard2007-04-064-31/+43
| | | | | | | | * lib/mkcollections.pl.in: Add externalclasses. * java/util/Collections.java: Unroll enhanced for loops. * java/util/HashMap.java: Likewise. * java/util/Hashtable.java: Likewise. * java/util/TreeMap.java: Likewise.
* 2007-04-05 Gary Benson <gbenson@redhat.com>Gary Benson2007-04-051-3/+14
| | | | | * java/util/GregorianCalendar.java (computeFields): Fix WEEK_OF_MONTH calculation.
* 2007-04-04 Gary Benson <gbenson@redhat.com>Gary Benson2007-04-041-1/+0
| | | | | * java/util/GregorianCalendar.java (GregorianCalendar(TimeZone, Locale)): Remove redundant complete().
* 2007-03-31 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2007-03-311-1/+2
| | | | | | PR classpath/31402: * java/util/concurrent/CopyOnWriteArrayList.java (remove): Fixed ArrayIndexOutOfBoundsException when index == 0.
* PR libgcj/29869:Tom Tromey2007-03-301-9/+9
| | | | | * gnu/java/util/jar/JarUtils.java (log): Commented out. (readSFManifest): Don't log.
* PR libgcj/29869:Tom Tromey2007-03-301-2/+10
| | | | | | * java/util/logging/LogManager.java (readConfiguration): Handle comma-separated 'handlers'. Don't try to add a non-existing handler.
* PR classpath/31057:Tom Tromey2007-03-071-1/+11
| | | | * java/util/regex/Pattern.java (toString): New method.
* 2007-02-23 Gary Benson <gbenson@redhat.com>Gary Benson2007-02-233-126/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Jakub Jelinek <jakub@redhat.com> PR libgcj/17002 PR classpath/28550 * java/util/Date.java (parse): Properly parse 09:01:02 as hours/minutes/seconds, not as hours/minutes/year. * java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify {start,end}TimeMode constructor by calling shorter constructor, set {start,end}TimeMode fields after it returns. (setStartRule): Don't adjust startTime into WALL_TIME. Set startTimeMode to WALL_TIME. (endStartRule): Similarly. (getOffset): Handle properly millis + dstOffset overflowing into the next day. Adjust startTime resp. endTime based on startTimeMode resp. endTimeMode. * java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New static fields. (timezones): Remove synchronized keyword. Set zoneinfo_dir. If non-null, set up aliases0 and don't put anything into timezones0. (defaultZone): Call getTimeZone instead of timezones().get. (getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6. Use getTimeZoneInternal instead of timezones().get. (parseTime): Parse correctly hour:minute. (getTimeZoneInternal): New private method. (getTimeZone): Do the custom ID checking first, canonicalize ID for custom IDs as required by documentation. Call getTimeZoneInternal to handle the rest. (getAvailableIDs(int)): Add locking. Handle zoneinfo_dir != null. (getAvailableIDs(File,String,ArrayList)): New private method. (getAvailableIDs()): Add locking. Handle zoneinfo_dir != null. * vm/reference/java/util/VMTimeZone.java (getDefaultTimeZoneId): To read /etc/localtime, use ZoneInfo.readTZFile instead of VMTimeZone.readtzFile. Get better timezone name for /etc/localtime, either if it is a symlink or through /etc/sysconfig/clock. (readSysconfigClockFile): New static method. (readtzFile): Removed. * gnu/java/util/ZoneInfo.java: New file. * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments. * NEWS: Documented TimeZone interface changes.