VirtualBox

Changeset 38912 in vbox


Ignore:
Timestamp:
Sep 30, 2011 9:52:49 AM (13 years ago)
Author:
vboxsync
Message:

Main/glue-java: fix copyright in the generated code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r38799 r38912  
    5050 *  Copyright (C) 2010-2011 Oracle Corporation
    5151 *
    52  *  This file is part of VirtualBox Open Source Edition (OSE), as
    53  *  available from http://www.virtualbox.org. This file is free software;
    54  *  you can redistribute it and/or modify it under the terms of the GNU
    55  *  General Public License (GPL) as published by the Free Software
    56  *  Foundation, in version 2 as it comes in the "COPYING" file of the
    57  *  VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    58  *  hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     52 *  This file is part of the VirtualBox SDK, as available from
     53 *  http://www.virtualbox.org.  This library is free software; you can
     54 *  redistribute it and/or modify it under the terms of the GNU Lesser General
     55 *  Public License as published by the Free Software Foundation, in version 2.1
     56 *  as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
     57 *  This library is distributed in the hope that it will be useful, but WITHOUT
     58 *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     59 *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
     60 *  License for more details.
    5961 *
    6062</xsl:text>
     
    678680  <xsl:param name="type" />
    679681  <xsl:param name="safearray" />
    680   <xsl:param name="forceelem" /> 
    681 
    682   <xsl:choose>     
     682  <xsl:param name="forceelem" />
     683
     684  <xsl:choose>
    683685    <xsl:when test="($G_vboxGlueStyle='xpcom')">
    684686      <xsl:variable name="needarray" select="($safearray='yes') and not($forceelem='yes')" />
     
    759761    <xsl:when test="($G_vboxGlueStyle='jaxws')">
    760762      <xsl:variable name="needarray" select="($safearray='yes' and not($type='octet')) and not($forceelem='yes')" />
    761      
     763
    762764      <xsl:if test="$needarray">
    763765        <xsl:value-of select="'List&lt;'" />
     
    36143616        }
    36153617    }
    3616    
     3618
    36173619    /* Pretty naive Base64 encoder/decoder. */
    36183620    private static final char[] valToChar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray();
    36193621    private static final int[] charToVal = new int[256];
    36203622
    3621     /* Initialize recoding alphabet. */ 
    3622     static 
     3623    /* Initialize recoding alphabet. */
     3624    static
    36233625    {
    36243626        for (int i = 0; i < charToVal.length; i++)
     
    36543656            result[stringIndex++] = valToChar[ch3 & 0x3f];
    36553657        }
    3656        
     3658
    36573659        switch (data.length - dataIndex)
    36583660        {
     
    36983700        if (str == null)
    36993701            return null;
    3700        
     3702
    37013703        int stringLength = str.length();
    37023704        if (stringLength == 0)
     
    37143716                padChars++;
    37153717        }
    3716        
     3718
    37173719        if ((validChars * 3 % 4) != 0)
    37183720            throw new RuntimeException("invalid encoded string "+str);
     
    37363738
    37373739            result[dataIndex++] = (byte)(((charToVal[ch1] << 2) | charToVal[ch2] >> 4) & 0xff);
    3738             /* we check this to ensure that we don't override data with '=' padding. */ 
     3740            /* we check this to ensure that we don't override data with '=' padding. */
    37393741            if (dataIndex < result.length)
    37403742                result[dataIndex++] = (byte)(((charToVal[ch2] << 4) | charToVal[ch3] >> 2) & 0xff);
     
    37423744                result[dataIndex++] = (byte)(((charToVal[ch3] << 6) | charToVal[ch4]) & 0xff);
    37433745        }
    3744        
     3746
    37453747        return result;
    37463748    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette