Skip to content

Commit

Permalink
Exchange HashMap with LinkedHashMap (OData v4) (#673)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Israel <[email protected]>
  • Loading branch information
Jonas-Isr and Jonas Israel authored Dec 19, 2024
1 parent e892246 commit b376ce1
Show file tree
Hide file tree
Showing 49 changed files with 49 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ protected Map<java.lang.String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<java.lang.String, Object> inputValues )
{
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ protected Map<java.lang.String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<java.lang.String, Object> inputValues )
{
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected Map<String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<String, Object> inputValues )
{
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Start") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected Map<java.lang.String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<java.lang.String, Object> inputValues )
{
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected Map<String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<String, Object> inputValues )
{
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected Map<java.lang.String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<java.lang.String, Object> inputValues )
{
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected Map<String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<String, Object> inputValues )
{
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("ProductId") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected Map<String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<String, Object> inputValues )
{
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("ReceiptId") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected Map<String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<String, Object> inputValues )
{
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected Map<String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<String, Object> inputValues )
{
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ protected Map<java.lang.String, Object> toMapOfFields()
@Override
protected void fromMap( final Map<java.lang.String, Object> inputValues )
{
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if( cloudSdkValues.containsKey("Id") ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ private JDefinedClass generateEnumTypeClass( final JPackage namespacePackage, fi
JMod.FINAL,
fieldMapClass,
CommonConstants.INLINE_MAP_NAME,
codeModel.ref(Maps.class).staticInvoke("newHashMap").arg(inputValues));
codeModel.ref(Maps.class).staticInvoke("newLinkedHashMap").arg(inputValues));

body.block().directStatement("// simple properties");
final JBlock simplePropertiesBlock = new JBlock(true, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Street")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("RequestId")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Foo")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Person")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Description")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("FirstName")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Person")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected Map<String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<String, Object> inputValues) {
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Start")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected Map<String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<String, Object> inputValues) {
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected Map<String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<String, Object> inputValues) {
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("ProductId")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected Map<String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<String, Object> inputValues) {
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("ReceiptId")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ protected Map<String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<String, Object> inputValues) {
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ protected Map<String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<String, Object> inputValues) {
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Person")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Foo")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Person")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Name")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("Person")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("BaseStringProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("StringProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("StringProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("KeyProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("KeyProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("KeyProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("KeyProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("KeyProperty")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected Map<java.lang.String, Object> toMapOfFields() {

@Override
protected void fromMap(final Map<java.lang.String, Object> inputValues) {
final Map<java.lang.String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
final Map<java.lang.String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
// simple properties
{
if (cloudSdkValues.containsKey("KeyProperty")) {
Expand Down
Loading

0 comments on commit b376ce1

Please sign in to comment.